Skip to main content

grime

Grime is an archival document management platform — a reusable Django app for ingesting scanned documents, running OCR / NER pipelines, and annotating pages with tagged regions.

Quick start

pip install -e ".[dev]"
python manage.py migrate
python manage.py createsuperuser
python manage.py ingest MY_DOCUMENT.pdf
# Should return an endpoint like '/documents/1'

python manage.py runserver
# then visit http://127.0.0.1:8000/documents/1
# or visit http://127.0.0.1:8000/admin, login, and 
# navigate to you document

Management commands

You can run ocr and ner page by page in the document viewer or you can bulk process documents from the command line using the following commands:

python manage.py ocr        --document 42 [--page N] [--textract] [--force] [--dry-run]
python manage.py ner        --document 42 [--page N] [--threshold 0.85] [--force] [--dry-run]
python manage.py match_tags --label "member entry" [--source-document 3] [--target-document 5] \
                            [--create-tags] [--force] [--min-score 0.5] [--tolerance 0.08]

Status

This is an initial scaffold. The admin loads and the management commands run end-to-end, but the embedded document viewer (templates/admin/grime/_document_viewer.html) is read-only: bboxes and tags render on the page image, but interactive editing (OCR correction, tag CRUD, NER label correction) needs AJAX endpoints that have not been implemented yet.

Metadata

Release files for grime 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for grime 0.1.1
File Size Uploaded Provenance Actions
grime-0.1.1.tar.gz 104.9 kB Without provenance Details for grime-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for grime 0.1.1
File Interpreter ABI Platform Actions
grime-0.1.1-py3-none-any.whl Python 3 none any Details for grime-0.1.1-py3-none-any.whl

Total release size: 206.7 kB

Release files / grime-0.1.1.tar.gz

Download URL grime-0.1.1.tar.gz
Size 104.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2bce3cdaae702ec312822ae91cf1d4cdcb4177cc316070e92447ba3b1a411395
BLAKE2b-256 checksum
How to use checksums
4af151b85a38f93e825d5fcbaa078beec85d45451b467cd83a365297525f42f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / grime-0.1.1-py3-none-any.whl

Download URL grime-0.1.1-py3-none-any.whl
Size 101.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cb65ddceadd04b0edab406a71aaa7e196e300e34db478aa6b8a1a0290caa068
BLAKE2b-256 checksum
How to use checksums
42bc9901ddc1db507d41a744655ff23b2c76e822aaa29ab11a234311032b0952
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for grime 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page