ext_data
Lightweight AI-based document extraction package for automatic document classification and structured data extraction using a hybrid NLP pipeline (spaCy + GLiNER).
Features
- Multi-format support -- PDF, DOCX, PPTX, PNG, JPG
- Automatic document classification
- Hybrid extraction -- spaCy, GLiNER, regex, rules
- Line item extraction -- tables and text
- OCR support via Tesseract OCR
- Structured JSON output with confidence scores
Installation
Prerequisites
- Python 3.10 – 3.12
- Tesseract OCR installed
Install package
pip install ext_data
Or from source:
git clone https://github.com/your-repo/ext_data.git
cd ext_data
pip install -e .
Usage
Single file
python -m ext_data.main --input file.pdf
Folder
python -m ext_data.main --input documents/
Output
Results are saved as JSON:
{
"document_type": "invoice",
"fields": {
"invoice_number": "INV-001",
"vendor_name": "Company",
"total_amount": "1000.00"
},
"line_items": [],
"overall_confidence": 0.8,
"status": "success"
}
Supported Types
- Invoice (enabled)
- Other types available in codebase (can be enabled manually)
Project Structure
ext_data/
├── main.py
├── ingestion/
├── parsers/
├── extraction/
└── output/
License
MIT
Metadata
Release files for ext-data 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ext_data-0.1.1.tar.gz | 67.7 kB | Without provenance | Details for ext_data-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ext_data-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for ext_data-0.1.1-py3-none-any.whl |
Total release size: 146.6 kB
Release files / ext_data-0.1.1.tar.gz
| Download URL | ext_data-0.1.1.tar.gz |
|---|---|
| Size | 67.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6eac84924f9bf2c6fa5988f8a6c24201aec40906f61ad638d7ed4359fe415b03
|
|
BLAKE2b-256 checksum How to use checksums |
e0e71d5ebeda5505d2e41507b29a5b6dc1dcf9dcd32ce172357efa2bf4f205ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Release files / ext_data-0.1.1-py3-none-any.whl
| Download URL | ext_data-0.1.1-py3-none-any.whl |
|---|---|
| Size | 78.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b5590c4cdfe3143362b250665a1963aed0444f261fb073acd712e5f77e2d1d6
|
|
BLAKE2b-256 checksum How to use checksums |
c4311145798f549a3e55ec9b822c3fbd8ab54f4bcca82f7697aab6efff509138
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Security for ext-data 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.