fastdocparse 0.1.0__tar.gz → 0.1.1__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.
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/PKG-INFO +12 -6
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/README.md +11 -5
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/pyproject.toml +1 -1
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/__init__.py +5 -1
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/fastdocparse.egg-info/PKG-INFO +12 -6
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/LICENSE +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/setup.cfg +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/cache.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/cli.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/config.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/example_schemas.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/grounding.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/json_repair.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/llm_client.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/ocr_engine.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/parser.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/pdf_utils.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/prompt_compiler.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/py.typed +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/result.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/schema.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/schema_compiler.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/schemas/invoice.json +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/docextract/schemas/shipment_manifest.json +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/fastdocparse.egg-info/SOURCES.txt +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/fastdocparse.egg-info/dependency_links.txt +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/fastdocparse.egg-info/entry_points.txt +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/fastdocparse.egg-info/requires.txt +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/src/fastdocparse.egg-info/top_level.txt +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/tests/test_architecture.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/tests/test_cli.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/tests/test_grounding.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/tests/test_parser.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/tests/test_schema_compiler.py +0 -0
- {fastdocparse-0.1.0 → fastdocparse-0.1.1}/tests/test_severe_edge_cases.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastdocparse
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Extract structured data from semi-structured documents using any OpenAI-compatible LLM, with per-field grounding and confidence.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Requires-Python: <3.13,>=3.9
|
|
@@ -47,15 +47,21 @@ Defining *what* to extract also has two paths — hand-write a JSON/YAML schema
|
|
|
47
47
|
## Install
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
|
-
|
|
50
|
+
pip install fastdocparse
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
(That's the PyPI distribution name — it was the closest available name once `docextract` turned out to collide with an existing project. The import name, the CLI command, and everything else stay `docextract`: `from docextract import ...`, `docextract extract ...`.)
|
|
54
|
+
|
|
55
|
+
For local development instead:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
git clone https://github.com/pranjalparmar/docextract
|
|
51
59
|
cd document-extractor
|
|
52
60
|
python -m venv venv
|
|
53
61
|
source venv/bin/activate # Windows: venv\Scripts\activate
|
|
54
|
-
pip install -e .
|
|
62
|
+
pip install -e ".[dev]"
|
|
55
63
|
```
|
|
56
64
|
|
|
57
|
-
(Not yet published to PyPI — see [Status](#status). Until then, install from a local clone as above.)
|
|
58
|
-
|
|
59
65
|
You also need access to an LLM. Either:
|
|
60
66
|
- An OpenAI API key (`export OPENAI_API_KEY=...` or pass `--api-key`), or
|
|
61
67
|
- A local model via [Ollama](https://ollama.com/) — no API key, no cloud, documents never leave your machine.
|
|
@@ -129,4 +135,4 @@ Want to contribute? Start with [docs/architecture.md](docs/architecture.md) for
|
|
|
129
135
|
|
|
130
136
|
## Status
|
|
131
137
|
|
|
132
|
-
Core extraction, grounding, chunking, both CLI/API paths, and real packaging (`pip install
|
|
138
|
+
Core extraction, grounding, chunking, both CLI/API paths, and real packaging are implemented and tested (74 tests, `pytest -v`). Published on PyPI as [`fastdocparse`](https://pypi.org/project/fastdocparse/) — `pip install fastdocparse` installs a working `docextract` command and a proper `docextract.*` import namespace, verified end to end with a clean-virtualenv install straight from the real public index. Not yet done: a hosted API — see [document-extractor-spec.md](document-extractor-spec.md) for the roadmap.
|
|
@@ -28,15 +28,21 @@ Defining *what* to extract also has two paths — hand-write a JSON/YAML schema
|
|
|
28
28
|
## Install
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
|
|
31
|
+
pip install fastdocparse
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
(That's the PyPI distribution name — it was the closest available name once `docextract` turned out to collide with an existing project. The import name, the CLI command, and everything else stay `docextract`: `from docextract import ...`, `docextract extract ...`.)
|
|
35
|
+
|
|
36
|
+
For local development instead:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
git clone https://github.com/pranjalparmar/docextract
|
|
32
40
|
cd document-extractor
|
|
33
41
|
python -m venv venv
|
|
34
42
|
source venv/bin/activate # Windows: venv\Scripts\activate
|
|
35
|
-
pip install -e .
|
|
43
|
+
pip install -e ".[dev]"
|
|
36
44
|
```
|
|
37
45
|
|
|
38
|
-
(Not yet published to PyPI — see [Status](#status). Until then, install from a local clone as above.)
|
|
39
|
-
|
|
40
46
|
You also need access to an LLM. Either:
|
|
41
47
|
- An OpenAI API key (`export OPENAI_API_KEY=...` or pass `--api-key`), or
|
|
42
48
|
- A local model via [Ollama](https://ollama.com/) — no API key, no cloud, documents never leave your machine.
|
|
@@ -110,4 +116,4 @@ Want to contribute? Start with [docs/architecture.md](docs/architecture.md) for
|
|
|
110
116
|
|
|
111
117
|
## Status
|
|
112
118
|
|
|
113
|
-
Core extraction, grounding, chunking, both CLI/API paths, and real packaging (`pip install
|
|
119
|
+
Core extraction, grounding, chunking, both CLI/API paths, and real packaging are implemented and tested (74 tests, `pytest -v`). Published on PyPI as [`fastdocparse`](https://pypi.org/project/fastdocparse/) — `pip install fastdocparse` installs a working `docextract` command and a proper `docextract.*` import namespace, verified end to end with a clean-virtualenv install straight from the real public index. Not yet done: a hosted API — see [document-extractor-spec.md](document-extractor-spec.md) for the roadmap.
|
|
@@ -19,7 +19,11 @@ from .schema_compiler import compile_schema_from_description
|
|
|
19
19
|
|
|
20
20
|
try:
|
|
21
21
|
from importlib.metadata import version as _pkg_version
|
|
22
|
-
|
|
22
|
+
# Looks up by the PyPI *distribution* name, not the import name — these differ
|
|
23
|
+
# ("docextract" was blocked by PyPI's name-similarity rule against the existing
|
|
24
|
+
# "doc-extract", so the distribution is registered as "fastdocparse"). Keep this
|
|
25
|
+
# in sync with pyproject.toml's [project] name if that ever changes again.
|
|
26
|
+
__version__ = _pkg_version("fastdocparse")
|
|
23
27
|
except Exception:
|
|
24
28
|
__version__ = "0.0.0+unknown"
|
|
25
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastdocparse
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Extract structured data from semi-structured documents using any OpenAI-compatible LLM, with per-field grounding and confidence.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Requires-Python: <3.13,>=3.9
|
|
@@ -47,15 +47,21 @@ Defining *what* to extract also has two paths — hand-write a JSON/YAML schema
|
|
|
47
47
|
## Install
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
|
-
|
|
50
|
+
pip install fastdocparse
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
(That's the PyPI distribution name — it was the closest available name once `docextract` turned out to collide with an existing project. The import name, the CLI command, and everything else stay `docextract`: `from docextract import ...`, `docextract extract ...`.)
|
|
54
|
+
|
|
55
|
+
For local development instead:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
git clone https://github.com/pranjalparmar/docextract
|
|
51
59
|
cd document-extractor
|
|
52
60
|
python -m venv venv
|
|
53
61
|
source venv/bin/activate # Windows: venv\Scripts\activate
|
|
54
|
-
pip install -e .
|
|
62
|
+
pip install -e ".[dev]"
|
|
55
63
|
```
|
|
56
64
|
|
|
57
|
-
(Not yet published to PyPI — see [Status](#status). Until then, install from a local clone as above.)
|
|
58
|
-
|
|
59
65
|
You also need access to an LLM. Either:
|
|
60
66
|
- An OpenAI API key (`export OPENAI_API_KEY=...` or pass `--api-key`), or
|
|
61
67
|
- A local model via [Ollama](https://ollama.com/) — no API key, no cloud, documents never leave your machine.
|
|
@@ -129,4 +135,4 @@ Want to contribute? Start with [docs/architecture.md](docs/architecture.md) for
|
|
|
129
135
|
|
|
130
136
|
## Status
|
|
131
137
|
|
|
132
|
-
Core extraction, grounding, chunking, both CLI/API paths, and real packaging (`pip install
|
|
138
|
+
Core extraction, grounding, chunking, both CLI/API paths, and real packaging are implemented and tested (74 tests, `pytest -v`). Published on PyPI as [`fastdocparse`](https://pypi.org/project/fastdocparse/) — `pip install fastdocparse` installs a working `docextract` command and a proper `docextract.*` import namespace, verified end to end with a clean-virtualenv install straight from the real public index. Not yet done: a hosted API — see [document-extractor-spec.md](document-extractor-spec.md) for the roadmap.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|