azurea 0.2.0__tar.gz

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.
azurea-0.2.0/PKG-INFO ADDED
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.4
2
+ Name: azurea
3
+ Version: 0.2.0
4
+ Summary: Matplotlib themes by azuka — dark & light plotting styles with bundled Poppins font.
5
+ Author-email: azuka <azkarohbiya@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/azkaram/azurea
8
+ Keywords: matplotlib,theme,style,dark-mode,visualization
9
+ Requires-Python: >=3.8
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: matplotlib>=3.7
12
+
13
+ # azurea
14
+
15
+ Matplotlib themes by **azuka** — dark & light plotting styles with bundled Poppins font.
16
+
17
+ ## Install
18
+
19
+ ```bash
20
+ pip install azurea
21
+ # or, from GitHub:
22
+ pip install git+https://github.com/azkaram/azurea.git
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ ```python
28
+ import matplotlib.pyplot as plt
29
+ import azurea # auto-registers styles and Poppins font
30
+
31
+ plt.style.use("azurea.react_dark") # or "azurea.react_light"
32
+ # shortcut:
33
+ # azurea.use("react_dark")
34
+ ```
35
+
36
+ List available styles:
37
+
38
+ ```python
39
+ azurea.available()
40
+ # ['azurea.react_dark', 'azurea.react_light']
41
+ ```
42
+
43
+ ## Themes
44
+
45
+ | Name | Background | Use case |
46
+ |---|---|---|
47
+ | `azurea.react_dark` | `#282c34` | dark-mode dashboards, notebooks |
48
+ | `azurea.react_light` | `#FFFFFF` | reports, print, docs |
49
+
50
+ Both share the Poppins typeface (bundled — no manual font install needed) and a
51
+ React-inspired palette led by `#0472f7` blue, `#06b45e` green, `#fc3d51` red.
52
+
53
+ ## Build & publish
54
+
55
+ ```bash
56
+ pip install build twine
57
+ python -m build
58
+ twine upload dist/* # to PyPI
59
+ ```
60
+
61
+ ## License
62
+
63
+ MIT © azuka
azurea-0.2.0/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # azurea
2
+
3
+ Matplotlib themes by **azuka** — dark & light plotting styles with bundled Poppins font.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install azurea
9
+ # or, from GitHub:
10
+ pip install git+https://github.com/azkaram/azurea.git
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```python
16
+ import matplotlib.pyplot as plt
17
+ import azurea # auto-registers styles and Poppins font
18
+
19
+ plt.style.use("azurea.react_dark") # or "azurea.react_light"
20
+ # shortcut:
21
+ # azurea.use("react_dark")
22
+ ```
23
+
24
+ List available styles:
25
+
26
+ ```python
27
+ azurea.available()
28
+ # ['azurea.react_dark', 'azurea.react_light']
29
+ ```
30
+
31
+ ## Themes
32
+
33
+ | Name | Background | Use case |
34
+ |---|---|---|
35
+ | `azurea.react_dark` | `#282c34` | dark-mode dashboards, notebooks |
36
+ | `azurea.react_light` | `#FFFFFF` | reports, print, docs |
37
+
38
+ Both share the Poppins typeface (bundled — no manual font install needed) and a
39
+ React-inspired palette led by `#0472f7` blue, `#06b45e` green, `#fc3d51` red.
40
+
41
+ ## Build & publish
42
+
43
+ ```bash
44
+ pip install build twine
45
+ python -m build
46
+ twine upload dist/* # to PyPI
47
+ ```
48
+
49
+ ## License
50
+
51
+ MIT © azuka
@@ -0,0 +1,27 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "azurea"
7
+ version = "0.2.0"
8
+ description = "Matplotlib themes by azuka — dark & light plotting styles with bundled Poppins font."
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ authors = [{ name = "azuka", email = "azkarohbiya@gmail.com" }]
12
+ license = { text = "MIT" }
13
+ keywords = ["matplotlib", "theme", "style", "dark-mode", "visualization"]
14
+ dependencies = ["matplotlib>=3.7"]
15
+
16
+ [project.urls]
17
+ Homepage = "https://github.com/azkaram/azurea"
18
+
19
+ [project.entry-points."matplotlib.style"]
20
+ "azurea.react_dark" = "azurea.styles:react_dark.mplstyle"
21
+ "azurea.react_light" = "azurea.styles:react_light.mplstyle"
22
+
23
+ [tool.setuptools.packages.find]
24
+ where = ["src"]
25
+
26
+ [tool.setuptools.package-data]
27
+ azurea = ["styles/*.mplstyle", "fonts/*.ttf", "fonts/*.otf"]
azurea-0.2.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,63 @@
1
+ """azurea — matplotlib themes by azuka."""
2
+ from importlib.resources import files
3
+ import matplotlib as mpl
4
+ import matplotlib.font_manager as fm
5
+ import matplotlib.pyplot as plt
6
+
7
+ __version__ = "0.2.0"
8
+
9
+ custom_colors = [
10
+ '#5778a4', '#e49444', '#d1615d', '#85b6b2', '#6a9f58',
11
+ '#e7ca60', '#a87c9f', '#f1a2b1', '#967662', '#b8b0ac',
12
+ '#c47596', '#d3a7bc', '#7abf73', '#c4a444', '#4d9490',
13
+ '#82b4b0', '#eec96a', '#9dc6e0', '#f5c07a', '#979797',
14
+ '#c9aac6', '#82b4b0', '#e0705a',
15
+ ]
16
+
17
+ _FONTS_REGISTERED = False
18
+ _STYLES_REGISTERED = False
19
+
20
+
21
+ def _register_fonts():
22
+ global _FONTS_REGISTERED
23
+ if _FONTS_REGISTERED:
24
+ return
25
+ fonts_dir = files(__package__) / "fonts"
26
+ for f in fonts_dir.iterdir():
27
+ if f.suffix.lower() in (".ttf", ".otf"):
28
+ fm.fontManager.addfont(str(f))
29
+ _FONTS_REGISTERED = True
30
+
31
+
32
+ def _register_styles():
33
+ """Fallback loader in case the entry-point mechanism doesn't pick them up."""
34
+ global _STYLES_REGISTERED
35
+ if _STYLES_REGISTERED:
36
+ return
37
+ styles_dir = files(__package__) / "styles"
38
+ for f in styles_dir.iterdir():
39
+ if f.suffix == ".mplstyle":
40
+ name = f"azurea.{f.stem}"
41
+ plt.style.library[name] = mpl.rc_params_from_file(
42
+ str(f), use_default_template=False
43
+ )
44
+ plt.style.core.available[:] = sorted(plt.style.library.keys())
45
+ _STYLES_REGISTERED = True
46
+
47
+
48
+ def use(name: str = "react_dark"):
49
+ """Convenience: azurea.use('react_dark') or azurea.use('react_light')."""
50
+ _register_fonts()
51
+ _register_styles()
52
+ if not name.startswith("azurea."):
53
+ name = f"azurea.{name}"
54
+ plt.style.use(name)
55
+
56
+
57
+ def available():
58
+ _register_styles()
59
+ return sorted(n for n in plt.style.available if n.startswith("azurea."))
60
+
61
+
62
+ _register_fonts()
63
+ _register_styles()
@@ -0,0 +1,39 @@
1
+ # azurea.react_dark — plt.style.use('azurea.react_dark')
2
+
3
+ axes.facecolor: 282c34
4
+ axes.edgecolor: 444444
5
+ axes.labelcolor: BBBBBB
6
+ figure.facecolor: 282c34
7
+ figure.edgecolor: 444444
8
+ savefig.facecolor: 282c34
9
+ savefig.edgecolor: 444444
10
+
11
+ xtick.color: 444444
12
+ ytick.color: 444444
13
+ xtick.labelcolor: BBBBBB
14
+ ytick.labelcolor: BBBBBB
15
+ text.color: BBBBBB
16
+
17
+ grid.color: 444444
18
+ grid.linestyle: --
19
+ grid.alpha: 0.9
20
+ axes.grid: True
21
+ axes.grid.axis: y
22
+ axes.axisbelow: True
23
+
24
+ axes.spines.top: False
25
+ axes.spines.right: False
26
+ axes.spines.left: False
27
+ axes.spines.bottom: True
28
+
29
+ axes.xmargin: 0.01
30
+ axes.ymargin: 0.2
31
+
32
+ lines.linewidth: 2
33
+ font.size: 12
34
+ font.family: Poppins
35
+
36
+ patch.edgecolor: none
37
+ patch.linewidth: 0
38
+
39
+ axes.prop_cycle: cycler('color', ['5778a4','e49444','d1615d','85b6b2','6a9f58','e7ca60','a87c9f','f1a2b1','967662','b8b0ac','c47596','d3a7bc','7abf73','c4a444','4d9490','82b4b0','eec96a','9dc6e0','f5c07a','979797','c9aac6','82b4b0','e0705a'])
@@ -0,0 +1,39 @@
1
+ # azurea.react_light — plt.style.use('azurea.react_light')
2
+
3
+ axes.facecolor: FFFFFF
4
+ axes.edgecolor: CCCCCC
5
+ axes.labelcolor: 333333
6
+ figure.facecolor: FFFFFF
7
+ figure.edgecolor: CCCCCC
8
+ savefig.facecolor: FFFFFF
9
+ savefig.edgecolor: CCCCCC
10
+
11
+ xtick.color: CCCCCC
12
+ ytick.color: CCCCCC
13
+ xtick.labelcolor: 333333
14
+ ytick.labelcolor: 333333
15
+ text.color: 333333
16
+
17
+ grid.color: E5E5E5
18
+ grid.linestyle: --
19
+ grid.alpha: 0.9
20
+ axes.grid: True
21
+ axes.grid.axis: y
22
+ axes.axisbelow: True
23
+
24
+ axes.spines.top: False
25
+ axes.spines.right: False
26
+ axes.spines.left: False
27
+ axes.spines.bottom: True
28
+
29
+ axes.xmargin: 0.01
30
+ axes.ymargin: 0.2
31
+
32
+ lines.linewidth: 2
33
+ font.size: 12
34
+ font.family: Poppins
35
+
36
+ patch.edgecolor: none
37
+ patch.linewidth: 0
38
+
39
+ axes.prop_cycle: cycler('color', ['5778a4','e49444','d1615d','85b6b2','6a9f58','e7ca60','a87c9f','f1a2b1','967662','b8b0ac','c47596','d3a7bc','7abf73','c4a444','4d9490','82b4b0','eec96a','9dc6e0','f5c07a','979797','c9aac6','82b4b0','e0705a'])
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.4
2
+ Name: azurea
3
+ Version: 0.2.0
4
+ Summary: Matplotlib themes by azuka — dark & light plotting styles with bundled Poppins font.
5
+ Author-email: azuka <azkarohbiya@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/azkaram/azurea
8
+ Keywords: matplotlib,theme,style,dark-mode,visualization
9
+ Requires-Python: >=3.8
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: matplotlib>=3.7
12
+
13
+ # azurea
14
+
15
+ Matplotlib themes by **azuka** — dark & light plotting styles with bundled Poppins font.
16
+
17
+ ## Install
18
+
19
+ ```bash
20
+ pip install azurea
21
+ # or, from GitHub:
22
+ pip install git+https://github.com/azkaram/azurea.git
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ ```python
28
+ import matplotlib.pyplot as plt
29
+ import azurea # auto-registers styles and Poppins font
30
+
31
+ plt.style.use("azurea.react_dark") # or "azurea.react_light"
32
+ # shortcut:
33
+ # azurea.use("react_dark")
34
+ ```
35
+
36
+ List available styles:
37
+
38
+ ```python
39
+ azurea.available()
40
+ # ['azurea.react_dark', 'azurea.react_light']
41
+ ```
42
+
43
+ ## Themes
44
+
45
+ | Name | Background | Use case |
46
+ |---|---|---|
47
+ | `azurea.react_dark` | `#282c34` | dark-mode dashboards, notebooks |
48
+ | `azurea.react_light` | `#FFFFFF` | reports, print, docs |
49
+
50
+ Both share the Poppins typeface (bundled — no manual font install needed) and a
51
+ React-inspired palette led by `#0472f7` blue, `#06b45e` green, `#fc3d51` red.
52
+
53
+ ## Build & publish
54
+
55
+ ```bash
56
+ pip install build twine
57
+ python -m build
58
+ twine upload dist/* # to PyPI
59
+ ```
60
+
61
+ ## License
62
+
63
+ MIT © azuka
@@ -0,0 +1,13 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/azurea/__init__.py
4
+ src/azurea.egg-info/PKG-INFO
5
+ src/azurea.egg-info/SOURCES.txt
6
+ src/azurea.egg-info/dependency_links.txt
7
+ src/azurea.egg-info/entry_points.txt
8
+ src/azurea.egg-info/requires.txt
9
+ src/azurea.egg-info/top_level.txt
10
+ src/azurea/fonts/Poppins-Bold.ttf
11
+ src/azurea/fonts/Poppins-Regular.ttf
12
+ src/azurea/styles/react_dark.mplstyle
13
+ src/azurea/styles/react_light.mplstyle
@@ -0,0 +1,3 @@
1
+ [matplotlib.style]
2
+ azurea.react_dark = azurea.styles:react_dark.mplstyle
3
+ azurea.react_light = azurea.styles:react_light.mplstyle
@@ -0,0 +1 @@
1
+ matplotlib>=3.7
@@ -0,0 +1 @@
1
+ azurea