huebox 0.3.0__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.
huebox/__init__.py ADDED
@@ -0,0 +1,34 @@
1
+ """huebox - a terminal theme editor with live preview.
2
+
3
+ Package split of the original single-file module (§17 of
4
+ docs/001-spec/spec.md). The v1 public names are re-exported here so
5
+ `import huebox` keeps working for existing tests and callers.
6
+ """
7
+
8
+ # NOTE: version first — cli imports it during package initialisation.
9
+ __version__ = "0.3.0"
10
+
11
+ from .cli import main
12
+ from .color import MISSING, NAMED, PALETTE, SLOTS
13
+ from .formats import FORMAT_NAMES, FORMATS
14
+ from .render import (clip, diff_lines, example_lines, pack, render_preview,
15
+ sample_lines)
16
+ from .tui import term_size
17
+
18
+ __all__ = [
19
+ "__version__",
20
+ "main",
21
+ "PALETTE",
22
+ "NAMED",
23
+ "SLOTS",
24
+ "MISSING",
25
+ "FORMATS",
26
+ "FORMAT_NAMES",
27
+ "clip",
28
+ "diff_lines",
29
+ "pack",
30
+ "example_lines",
31
+ "render_preview",
32
+ "sample_lines",
33
+ "term_size",
34
+ ]
huebox/__main__.py ADDED
@@ -0,0 +1,7 @@
1
+ """`python -m huebox` (§17)."""
2
+
3
+ import sys
4
+
5
+ from .cli import main
6
+
7
+ sys.exit(main())