chromatic-python 0.4.0__py3-none-any.whl → 0.4.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- chromatic/__init__.py +8 -8
- chromatic/__init__.pyi +90 -90
- chromatic/_typing.py +444 -443
- chromatic/_version.py +34 -34
- chromatic/color/__init__.py +3 -3
- chromatic/color/__init__.pyi +90 -90
- chromatic/color/colorconv.py +352 -352
- chromatic/color/core.py +1749 -1710
- chromatic/color/core.pyi +501 -515
- chromatic/color/iterators.py +172 -172
- chromatic/color/palette.py +591 -591
- chromatic/color/palette.pyi +300 -300
- chromatic/data/__init__.py +35 -33
- chromatic/data/__init__.pyi +18 -16
- chromatic/data/_fetchers.py +55 -55
- chromatic/data/registry.json +4 -4
- chromatic/data/userfont.py +139 -153
- chromatic/data/userfont.pyi +32 -30
- chromatic/data/userfont.schema.json +28 -28
- chromatic/demo.py +380 -380
- chromatic/image/__init__.py +5 -5
- chromatic/image/__init__.pyi +70 -70
- chromatic/image/_array.py +1380 -1324
- chromatic/image/_curses.py +146 -148
- chromatic/image/_glyph.py +90 -90
- {chromatic_python-0.4.0.dist-info → chromatic_python-0.4.2.dist-info}/METADATA +148 -149
- chromatic_python-0.4.2.dist-info/RECORD +34 -0
- {chromatic_python-0.4.0.dist-info → chromatic_python-0.4.2.dist-info}/WHEEL +1 -1
- chromatic_python-0.4.0.dist-info/RECORD +0 -35
- chromatic_python-0.4.0.dist-info/licenses/LICENSE +0 -21
- {chromatic_python-0.4.0.dist-info → chromatic_python-0.4.2.dist-info}/top_level.txt +0 -0
chromatic/__init__.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
try:
|
|
2
|
-
from ._version import version as __version__
|
|
3
|
-
except ImportError:
|
|
4
|
-
__version__ = "0.0.0"
|
|
5
|
-
|
|
6
|
-
import lazy_loader as _lazy
|
|
7
|
-
|
|
8
|
-
__getattr__, __dir__, __all__ = _lazy.attach_stub(__name__, __file__)
|
|
1
|
+
try:
|
|
2
|
+
from ._version import version as __version__
|
|
3
|
+
except ImportError:
|
|
4
|
+
__version__ = "0.0.0"
|
|
5
|
+
|
|
6
|
+
import lazy_loader as _lazy
|
|
7
|
+
|
|
8
|
+
__getattr__, __dir__, __all__ = _lazy.attach_stub(__name__, __file__)
|
chromatic/__init__.pyi
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
__all__ = [
|
|
2
|
-
'AnsiImage',
|
|
3
|
-
'Back',
|
|
4
|
-
'Color',
|
|
5
|
-
'ColorNamespace',
|
|
6
|
-
'ColorStr',
|
|
7
|
-
'Fore',
|
|
8
|
-
'SgrParameter',
|
|
9
|
-
'Style',
|
|
10
|
-
'UserFont',
|
|
11
|
-
'__version__',
|
|
12
|
-
'ansi2img',
|
|
13
|
-
'ansi_quantize',
|
|
14
|
-
'ansicolor24Bit',
|
|
15
|
-
'ansicolor4Bit',
|
|
16
|
-
'ansicolor8Bit',
|
|
17
|
-
'ansify',
|
|
18
|
-
'ascii2img',
|
|
19
|
-
'ascii_printable',
|
|
20
|
-
'color',
|
|
21
|
-
'color_chain',
|
|
22
|
-
'colorbytes',
|
|
23
|
-
'contrast_stretch',
|
|
24
|
-
'cp437_printable',
|
|
25
|
-
'data',
|
|
26
|
-
'equalize_white_point',
|
|
27
|
-
'get_font_key',
|
|
28
|
-
'get_font_object',
|
|
29
|
-
'get_glyph_masks',
|
|
30
|
-
'hexstr2rgb',
|
|
31
|
-
'image',
|
|
32
|
-
'img2ansi',
|
|
33
|
-
'img2ascii',
|
|
34
|
-
'int2rgb',
|
|
35
|
-
'named_color',
|
|
36
|
-
'read_ans',
|
|
37
|
-
'register_userfont',
|
|
38
|
-
'render_ans',
|
|
39
|
-
'reshape_ansi',
|
|
40
|
-
'rgb2hexstr',
|
|
41
|
-
'rgb2int',
|
|
42
|
-
'sort_glyphs',
|
|
43
|
-
'to_sgr_array',
|
|
44
|
-
'ttf_extract_codepoints',
|
|
45
|
-
'userfont',
|
|
46
|
-
'set_default_ansi',
|
|
47
|
-
]
|
|
48
|
-
from . import color, data, image
|
|
49
|
-
from ._version import version as __version__
|
|
50
|
-
from .color import (
|
|
51
|
-
Back,
|
|
52
|
-
Color,
|
|
53
|
-
ColorNamespace,
|
|
54
|
-
ColorStr,
|
|
55
|
-
Fore,
|
|
56
|
-
SgrParameter,
|
|
57
|
-
Style,
|
|
58
|
-
ansicolor24Bit,
|
|
59
|
-
ansicolor4Bit,
|
|
60
|
-
ansicolor8Bit,
|
|
61
|
-
color_chain,
|
|
62
|
-
colorbytes,
|
|
63
|
-
hexstr2rgb,
|
|
64
|
-
int2rgb,
|
|
65
|
-
named_color,
|
|
66
|
-
rgb2hexstr,
|
|
67
|
-
rgb2int,
|
|
68
|
-
set_default_ansi,
|
|
69
|
-
)
|
|
70
|
-
from .data import UserFont, register_userfont, userfont
|
|
71
|
-
from .image import (
|
|
72
|
-
AnsiImage,
|
|
73
|
-
ansi2img,
|
|
74
|
-
ansi_quantize,
|
|
75
|
-
ansify,
|
|
76
|
-
ascii2img,
|
|
77
|
-
ascii_printable,
|
|
78
|
-
contrast_stretch,
|
|
79
|
-
cp437_printable,
|
|
80
|
-
equalize_white_point,
|
|
81
|
-
get_font_key,
|
|
82
|
-
get_font_object,
|
|
83
|
-
img2ansi,
|
|
84
|
-
img2ascii,
|
|
85
|
-
read_ans,
|
|
86
|
-
render_ans,
|
|
87
|
-
reshape_ansi,
|
|
88
|
-
to_sgr_array,
|
|
89
|
-
)
|
|
90
|
-
from .image._glyph import get_glyph_masks, sort_glyphs, ttf_extract_codepoints
|
|
1
|
+
__all__ = [
|
|
2
|
+
'AnsiImage',
|
|
3
|
+
'Back',
|
|
4
|
+
'Color',
|
|
5
|
+
'ColorNamespace',
|
|
6
|
+
'ColorStr',
|
|
7
|
+
'Fore',
|
|
8
|
+
'SgrParameter',
|
|
9
|
+
'Style',
|
|
10
|
+
'UserFont',
|
|
11
|
+
'__version__',
|
|
12
|
+
'ansi2img',
|
|
13
|
+
'ansi_quantize',
|
|
14
|
+
'ansicolor24Bit',
|
|
15
|
+
'ansicolor4Bit',
|
|
16
|
+
'ansicolor8Bit',
|
|
17
|
+
'ansify',
|
|
18
|
+
'ascii2img',
|
|
19
|
+
'ascii_printable',
|
|
20
|
+
'color',
|
|
21
|
+
'color_chain',
|
|
22
|
+
'colorbytes',
|
|
23
|
+
'contrast_stretch',
|
|
24
|
+
'cp437_printable',
|
|
25
|
+
'data',
|
|
26
|
+
'equalize_white_point',
|
|
27
|
+
'get_font_key',
|
|
28
|
+
'get_font_object',
|
|
29
|
+
'get_glyph_masks',
|
|
30
|
+
'hexstr2rgb',
|
|
31
|
+
'image',
|
|
32
|
+
'img2ansi',
|
|
33
|
+
'img2ascii',
|
|
34
|
+
'int2rgb',
|
|
35
|
+
'named_color',
|
|
36
|
+
'read_ans',
|
|
37
|
+
'register_userfont',
|
|
38
|
+
'render_ans',
|
|
39
|
+
'reshape_ansi',
|
|
40
|
+
'rgb2hexstr',
|
|
41
|
+
'rgb2int',
|
|
42
|
+
'sort_glyphs',
|
|
43
|
+
'to_sgr_array',
|
|
44
|
+
'ttf_extract_codepoints',
|
|
45
|
+
'userfont',
|
|
46
|
+
'set_default_ansi',
|
|
47
|
+
]
|
|
48
|
+
from . import color, data, image
|
|
49
|
+
from ._version import version as __version__
|
|
50
|
+
from .color import (
|
|
51
|
+
Back,
|
|
52
|
+
Color,
|
|
53
|
+
ColorNamespace,
|
|
54
|
+
ColorStr,
|
|
55
|
+
Fore,
|
|
56
|
+
SgrParameter,
|
|
57
|
+
Style,
|
|
58
|
+
ansicolor24Bit,
|
|
59
|
+
ansicolor4Bit,
|
|
60
|
+
ansicolor8Bit,
|
|
61
|
+
color_chain,
|
|
62
|
+
colorbytes,
|
|
63
|
+
hexstr2rgb,
|
|
64
|
+
int2rgb,
|
|
65
|
+
named_color,
|
|
66
|
+
rgb2hexstr,
|
|
67
|
+
rgb2int,
|
|
68
|
+
set_default_ansi,
|
|
69
|
+
)
|
|
70
|
+
from .data import UserFont, register_userfont, userfont
|
|
71
|
+
from .image import (
|
|
72
|
+
AnsiImage,
|
|
73
|
+
ansi2img,
|
|
74
|
+
ansi_quantize,
|
|
75
|
+
ansify,
|
|
76
|
+
ascii2img,
|
|
77
|
+
ascii_printable,
|
|
78
|
+
contrast_stretch,
|
|
79
|
+
cp437_printable,
|
|
80
|
+
equalize_white_point,
|
|
81
|
+
get_font_key,
|
|
82
|
+
get_font_object,
|
|
83
|
+
img2ansi,
|
|
84
|
+
img2ascii,
|
|
85
|
+
read_ans,
|
|
86
|
+
render_ans,
|
|
87
|
+
reshape_ansi,
|
|
88
|
+
to_sgr_array,
|
|
89
|
+
)
|
|
90
|
+
from .image._glyph import get_glyph_masks, sort_glyphs, ttf_extract_codepoints
|