This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
Releases: maxludden/MaxGradient
Releases · maxludden/MaxGradient
v0.3.1
v0.2.19 Fixed Docs and Bugfix
v0.2.19
February 5, 2024 | Bugfix & Fixed Docs
Version Changes
- Updated Docs
- Changed exampes with
maxgradient.console.Console
to userich.console.Console
- Changed
import maxgradient as mg
statement to:
from maxgradient import {object}
- Changed exampes with
Bug Fixes
- Fixed bug where MaxGradient would fail due to a typo.
Rewrote Gradient and Color
What's Changed
January 30, 2024 | Created TypeAlias GradientColors
Version Changes
-
Added
GradientColors
, a TypeAlias for use inmaxgradient.gradient.Gradient
:GradientColors: TypeAlias = Union[ List[Color], List[ColorTriplet], List[RichColor], List[str], List[Tuple[int,int,int]] ]
Which changes the
Gradient
class.:def __init__( self, text: Optional[str | Text] = "", colors: Optional[GradientColors] = None, # <--- Here rainbow: bool = False, hues: Optional[int] = None, style: StyleType = Style.null(), verbose: bool = False, *, justify: Optional[JustifyMethod] = None, overflow: Optional[OverflowMethod] = None, no_wrap: Optional[bool] = None, end: str = "\n", tab_size: Optional[int] = 4, spans: Optional[List[Span]] = None, ) -> None:
So now you can specify colors outside of constructor:
console = Console(record=True, width=80) colors=["red", "orange", "yellow", "green", "cyan"] gradient = Gradient( "Gradients are awesome!", colors=color, justify="center", style="bold", ) console.print( Panel( gradient, title="Example", expand=False, border_style="bold #ffffff", padding=(1,4), width=35 ), justify='center' )
Files Removed
maxgradient.gradient._gradient_color.py
maxgradient.gradient._gradient.py
maxgradient.console.py
maxgradient._rich_colors.py
maxgradient._X11_colors.py
maxgradient._hex_colors.py
maxgradient._rgb_colors.py
maxgradient._color_triplet.py
maxgradient._color.py
As all of their functionality has been moved into maxgradient.color.py
Note
Removed custom console and went back to using rich's console as it improved the reliablility of jumping back and forth between maxgradient and rich.
v0.2.17
v0.2.17
January 6, 2024 | SRC Layout and New GradientColors and ColorList
Version Changes
- Changed layout to src
- Ran tests and fixed conflicts
- Added
__init__.py
tomaxgradient
directory
GradientColor
- Rewrote
_gradient_color.GradientColor
- Added 8 more colors bringing the the total to 18
ColorList
- Rewrote ColorList:
- Added the missing colors from GradientColor bringing the total to 18
- Updated examples and exported the SVG
Color
- Fixed
color.Color
so that it works with the newGradientColor
andColorList
classes
Dependancy Updates
- Updated
rich
to v10.6.0 - Updated
pydantic
to v1.9.0 - Updated
pytest
to v6.2.5
v0.2.16 | Added `themes.py` and fixed gradient
v0.2.16
Added
themes.py
(and fixed MaxGradient.gradient.Gradient)
Version Changes
- Added themes.py to mirror rich's themes.py
- Bug fixes for gradient.py and console.py
Dependancy Updates
- Removed snoop from modules
Updated dependancies
- Updated and locked dependancies to latest versions
- Added ruff configuration file
Pydantic Types
Attempted to fix PydanticSchemaGenerationError
Added Tests and removed Gradient Attributes
v0.2.11 | November 28, 2023 | Added Tests and removed Gradient Attributes
- Removed color_sample and invert from gradient attributes
- Added tests for console, color, and gradient
v0.2.10 | Added Dates
v3.2.10 | November 25, 2023 | Added Dates
- Updated changlog to have dates
- added logo and favicon to changelog
v0.2.9 | November 25, 2023 |Updated Banner
- Updated MaxGradient Logo:
v0.2.8 | November 25, 2023 | Fixed cli.py
- Fixed
cli.py
so that it works with the newgradient
method - Removed logging
v2.0.7 | Bug Fixes after Mypy
Updated all files
- to working Mypy
- fixed any changes that were breaking anything