forgegraph 0.0.1__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.
forgegraph/__init__.py ADDED
@@ -0,0 +1,10 @@
1
+ """ForgeGraph: consistent, high-quality graphs from a declarative GraphSpec."""
2
+
3
+ from importlib.metadata import PackageNotFoundError, version
4
+
5
+ try:
6
+ __version__ = version("forgegraph")
7
+ except PackageNotFoundError: # running from a source tree without installation
8
+ __version__ = "0.0.0"
9
+
10
+ __all__ = ["__version__"]
@@ -0,0 +1 @@
1
+ """The HTML review catalog and Forgemark comment carry-over."""
@@ -0,0 +1 @@
1
+ """Chart types: one folder per type with chart.yaml, render.py and sample data."""
@@ -0,0 +1,22 @@
1
+ """The `fg` command-line interface."""
2
+
3
+ import typer
4
+
5
+ from forgegraph import __version__
6
+
7
+ app = typer.Typer(help="ForgeGraph: consistent, high-quality graphs.", no_args_is_help=True)
8
+
9
+
10
+ def _show_version(value: bool) -> None:
11
+ if value:
12
+ typer.echo(f"forgegraph {__version__}")
13
+ raise typer.Exit()
14
+
15
+
16
+ @app.callback()
17
+ def main(
18
+ version: bool = typer.Option(
19
+ False, "--version", help="Show the version and exit.", callback=_show_version, is_eager=True
20
+ ),
21
+ ) -> None:
22
+ """ForgeGraph command-line interface."""
@@ -0,0 +1 @@
1
+ """Data connectors (files, DataFrame, SQL), inspect, and declarative transforms."""
@@ -0,0 +1 @@
1
+ """Built-in formats: output destinations such as paper, report, slide, poster and dashboard tile."""
@@ -0,0 +1 @@
1
+ """Scheduled renders: install, list and remove OS scheduler entries; status files."""
@@ -0,0 +1 @@
1
+ """Layers: one folder per layer with layer.yaml and render.py."""
@@ -0,0 +1 @@
1
+ """Layouts: multi-panel figures and dashboards rendered as one figure."""
@@ -0,0 +1 @@
1
+ """Pack discovery, user and project config, and the registry."""
@@ -0,0 +1 @@
1
+ """The matplotlib rendering engine, label markup, lint, export and provenance."""
@@ -0,0 +1 @@
1
+ """The agent skill (SKILL.md and references), installed by `fg skill install`."""
@@ -0,0 +1,3 @@
1
+ """Document models (GraphSpec, theme, format, layout), generated chart and layer models,
2
+ resolve and explain.
3
+ """
@@ -0,0 +1,21 @@
1
+ """Themes and the bundled fonts."""
2
+
3
+ from importlib.resources import files
4
+ from pathlib import Path
5
+
6
+ FONT_FAMILY = "Source Sans 3"
7
+
8
+
9
+ def font_dir() -> Path:
10
+ """Return the folder holding the bundled font files."""
11
+ return Path(str(files(__package__) / "fonts"))
12
+
13
+
14
+ def register_fonts() -> list[Path]:
15
+ """Register the bundled fonts with matplotlib and return their paths."""
16
+ from matplotlib import font_manager
17
+
18
+ paths = sorted(font_dir().glob("*.ttf"))
19
+ for path in paths:
20
+ font_manager.fontManager.addfont(str(path))
21
+ return paths
@@ -0,0 +1,93 @@
1
+ Copyright 2010-2022 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+
5
+ This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.5
2
+ Name: forgegraph
3
+ Version: 0.0.1
4
+ Summary: Low-labor, consistent, high-quality graphs from many data sources, for people and AI agents. Early development.
5
+ Project-URL: Repository, https://github.com/sskaye/forgegraph
6
+ Author: Steven Kaye
7
+ License-Expression: MIT
8
+ License-File: LICENSE
9
+ License-File: src/forgegraph/themes/fonts/OFL-SourceSans3.md
10
+ Classifier: Development Status :: 1 - Planning
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Topic :: Scientific/Engineering :: Visualization
17
+ Requires-Python: >=3.12
18
+ Requires-Dist: matplotlib>=3.9
19
+ Requires-Dist: openpyxl>=3.1
20
+ Requires-Dist: pandas>=2.2
21
+ Requires-Dist: pydantic>=2.7
22
+ Requires-Dist: ruamel-yaml>=0.18
23
+ Requires-Dist: typer>=0.12
24
+ Requires-Dist: xlrd>=2.0
25
+ Provides-Extra: sql
26
+ Requires-Dist: psycopg[binary]>=3.1; extra == 'sql'
27
+ Requires-Dist: sqlalchemy>=2.0; extra == 'sql'
28
+ Description-Content-Type: text/markdown
29
+
30
+ # ForgeGraph
31
+
32
+ Low-labor, fast and consistent construction of high-quality graphs from a variety of data sources, for people and AI agents alike.
33
+
34
+ ForgeGraph is a Python library, CLI and agent skill that turns a short declarative **GraphSpec** into a graph styled to a house standard, set once by a theme and a format.
35
+
36
+ **Status:** early development. Nothing usable yet.
37
+
38
+ - [Initial specification](docs/initial%20specification.md)
39
+ - [Architecture](docs/architecture.md)
40
+ - [Build plan](docs/build-plan.md)
41
+
42
+ Licence: [MIT](LICENSE). Graphs and other output you make with ForgeGraph are yours; no attribution or licence terms apply to them. See [TRADEMARKS.md](TRADEMARKS.md) for use of the name.
@@ -0,0 +1,25 @@
1
+ forgegraph/__init__.py,sha256=oJC14O85-hqraaGDzsifSKemhsKV3t4IIFvrQLfPqgM,321
2
+ forgegraph/catalog/__init__.py,sha256=G1655g81COp4F5-VSmqSuCRMFB6yLo1A0M63e6HvO8U,64
3
+ forgegraph/charts/__init__.py,sha256=eNsZzC_iWVU-CPBxYvhXZ_nLxObcZ6goURh9bA9lVOM,83
4
+ forgegraph/cli/__init__.py,sha256=xPN5-CJbn94g43aT8CqCUTtBpGzphV9NqcY73wrp7t8,540
5
+ forgegraph/data/__init__.py,sha256=lWqEuEyvz1HijhY4ShjwrR-IM3Q_iXAM_H_a6kxvWLA,84
6
+ forgegraph/formats/__init__.py,sha256=uMXmztpogfiq48urqUdjBbrxb3T-JOvdl1xHDHEj47s,101
7
+ forgegraph/jobs/__init__.py,sha256=0IYvs8LDCXCuimfEGTVKoWBwwbf6hC5PwqyRAFbgFrE,86
8
+ forgegraph/layers/__init__.py,sha256=bSRXsa6c1sg7htCZIcAJXjD5Z_EL9oe0ITfl2RGV-mA,66
9
+ forgegraph/layout/__init__.py,sha256=OLKTKrppHVoqd0qbPZ4-R6W5VHBcSyGZGiJKWwmFH7I,74
10
+ forgegraph/packs/__init__.py,sha256=iLHpH7k05HhvemJiPWNeX-5qk69y02yjqsRpCr3lrmU,65
11
+ forgegraph/render/__init__.py,sha256=x8K7AAV3JMPU1Lx3tMz7Ryl33b5S6udcIV7OsQoyIjg,82
12
+ forgegraph/skill/__init__.py,sha256=ZY6SQ3AS7Ai3fndj8t_QKsF8BtXzeE8NmGs6AgFqmro,82
13
+ forgegraph/spec/__init__.py,sha256=C5u88QYXte8g-3BivuueXSRi-2Ekm_ArVFNsY3E9qmo,114
14
+ forgegraph/themes/__init__.py,sha256=eVAV6WQZldH37UqGiqfcCnN2fF8ZV4EYsA9W_s2dH0Y,561
15
+ forgegraph/themes/fonts/OFL-SourceSans3.md,sha256=20coAjw3vR21Qv0U_55PO8wjg2uDdPb-HyNR04wpltU,4486
16
+ forgegraph/themes/fonts/SourceSans3-Bold.ttf,sha256=khS52V5CMcYJgCgVwmRsmBdOIQLQ03-Il4p_jnEAbmo,428176
17
+ forgegraph/themes/fonts/SourceSans3-It.ttf,sha256=GSr9ePD1Sjxp6vAtQ_TZqCHp1hEOQdPSXWGnOFzVgOQ,315812
18
+ forgegraph/themes/fonts/SourceSans3-Regular.ttf,sha256=RkTIG4bsnKqna2NIiZaO08T09S8FSFWTOsx8KyHlOw8,431196
19
+ forgegraph/themes/fonts/SourceSans3-Semibold.ttf,sha256=o_T43PNDqPJNxhlR3pPzuhVYsVzSULokr4pA6VcIG30,425904
20
+ forgegraph-0.0.1.dist-info/METADATA,sha256=92SQk5C7f-FBux4HR5y8vjEXIxvEiv91YB3_ZnO2Eyc,1801
21
+ forgegraph-0.0.1.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
22
+ forgegraph-0.0.1.dist-info/entry_points.txt,sha256=u753fR_Ao1n74wZH_AdAM28nxDWcA8fk1bEItGQGYRY,42
23
+ forgegraph-0.0.1.dist-info/licenses/LICENSE,sha256=FeqjfFfC5Et196pzYrqQi8876fTwXptxExJcGbYlbig,1068
24
+ forgegraph-0.0.1.dist-info/licenses/src/forgegraph/themes/fonts/OFL-SourceSans3.md,sha256=20coAjw3vR21Qv0U_55PO8wjg2uDdPb-HyNR04wpltU,4486
25
+ forgegraph-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ fg = forgegraph.cli:app
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Steven Kaye
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2010-2022 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+
5
+ This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.