sidx 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.
sidx/__init__.py ADDED
@@ -0,0 +1 @@
1
+ """A multi-stage agentic framework for extracting structured data from documents."""
sidx/py.typed ADDED
File without changes
@@ -0,0 +1,98 @@
1
+ Metadata-Version: 2.4
2
+ Name: sidx
3
+ Version: 0.0.1
4
+ Summary: A multi-stage agentic framework for extracting structured data from documents
5
+ Keywords: llm,agents,data-extraction,document-extraction,pydantic-ai,docling
6
+ Author: Andy Tseng
7
+ License-Expression: MIT
8
+ License-File: LICENSE
9
+ Classifier: Development Status :: 2 - Pre-Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Typing :: Typed
14
+ Requires-Dist: docling>=2.151.1
15
+ Requires-Dist: pydantic-ai>=2.71.0
16
+ Requires-Python: >=3.13
17
+ Project-URL: Homepage, https://github.com/ohandyya/self-improving-data-extraction
18
+ Project-URL: Repository, https://github.com/ohandyya/self-improving-data-extraction
19
+ Description-Content-Type: text/markdown
20
+
21
+ # sidx
22
+
23
+ **S**elf-**i**mproving **d**ata e**x**traction: a multi-stage agentic framework
24
+ for extracting structured data from documents, built on
25
+ [PydanticAI](https://ai.pydantic.dev) and
26
+ [Docling](https://github.com/docling-project/docling).
27
+
28
+ > **Work in progress.** There is no extraction code yet. The design is being
29
+ > written in [`docs/design/`](./docs/design/).
30
+
31
+ The first source documents are 401(k) basic plan documents from three
32
+ providers. Each one lays out the same material differently, which makes them
33
+ a test of whether extraction holds up across layouts. See
34
+ [`resources/plan_documents/`](./resources/plan_documents/README.md).
35
+
36
+ ## Setup
37
+
38
+ Requires [uv](https://docs.astral.sh/uv/). Python 3.13 is installed by uv if
39
+ you don't have it.
40
+
41
+ ```sh
42
+ uv sync # install dependencies into .venv
43
+ make hooks # install the pre-commit hook, once per clone
44
+ uv run python scripts/download_plan_documents.py # fetch the source PDFs
45
+ ```
46
+
47
+ The source PDFs are copyrighted by their publishers, so they are not committed
48
+ here. The download script fetches each one from its original URL and checks it
49
+ against a pinned SHA-256.
50
+
51
+ To call a model, copy `.env.example` to `.env` and fill in the values. Each
52
+ variable is described in `.env.example`.
53
+
54
+ ## Development
55
+
56
+ ```sh
57
+ make help # list every target
58
+ make check-all # ruff lint, ruff format check, pyright — what CI runs
59
+ make fix # auto-fix lint errors
60
+ make format # reformat code
61
+ ```
62
+
63
+ [`CONTRIBUTING.md`](./CONTRIBUTING.md) covers the PR checklist and how releases
64
+ are published to PyPI.
65
+
66
+ | Path | What's there |
67
+ |---|---|
68
+ | `src/sidx/` | The package (`import sidx`) |
69
+ | `scripts/` | One-off tooling, such as the PDF download script |
70
+ | `resources/plan_documents/` | Source documents (downloaded, not committed) and notes on them |
71
+ | `docs/design/` | How the system is meant to work — the spec |
72
+ | `docs/implementations/` | The build plan, one doc per PR |
73
+
74
+ ## Cutting a release
75
+
76
+ Releases are published to PyPI by GitHub Actions, never from a laptop.
77
+
78
+ 1. **Check you're ready.** From an up-to-date `main` with a clean working tree:
79
+
80
+ ```sh
81
+ git switch main && git pull
82
+ make release-check # add VERSION=X.Y.Z to check that version is free
83
+ ```
84
+
85
+ It changes nothing. Fix any `FAIL` line before going on.
86
+
87
+ 2. **Run the release.** In Claude Code, run `/create-new-release`. It proposes
88
+ the next version for you to confirm, merges a release PR with the version
89
+ bump and changelog, tags it, publishes the GitHub release, and checks that
90
+ PyPI has the new version.
91
+
92
+ The one-time PyPI and GitHub setup, and how to release by hand, are in
93
+ [`CONTRIBUTING.md`](./CONTRIBUTING.md#releasing).
94
+
95
+ ## License
96
+
97
+ [MIT](./LICENSE), covering the code and docs in this repo. The plan document
98
+ PDFs belong to their respective publishers and are not covered by it.
@@ -0,0 +1,6 @@
1
+ sidx/__init__.py,sha256=89lFcUxcg7gApIVG4873jsCLwlkvMBuG6bzlLzBWs4g,85
2
+ sidx/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ sidx-0.0.1.dist-info/licenses/LICENSE,sha256=Az1z4UPJqOyrwdXBtgkF6TW8IWvCUXOkL4Er2Y7UcDw,1067
4
+ sidx-0.0.1.dist-info/WHEEL,sha256=G_-rrEibZr7OEM7zdH1dSO6s-VdjfnS5PA4CLAdI9Vw,80
5
+ sidx-0.0.1.dist-info/METADATA,sha256=IRuxTMfNXzMW_UcsWzqjgfV8HCKobkxujXPKdfop69I,3707
6
+ sidx-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.13.9
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Andy Tseng
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.