Hocron
Hocron provides an API over HOCR file format.
Installation
pip install hocron
Prepare Development Environment & Run Tests
- virtualenv .venv -p /usr/bin/python3.8 # provide virtualenv path to 3.8 interpreter
- source .venv/bin/activate # activate .venv virtual environment
- pip install -r requirements.txt # install dependencies
- python setup.py develop # provide a link to dev version of hocron
- python test/run.py
Usage
Example:
from hocron import Hocron, LinePattern
# define a line pattern
line_pattern = LinePattern([
'EUR',
re.compile('\d+[\.,]+\d\d$')
])
hocron_inst = Hocron(hocr_as_str)
value = hocron_inst.get_labeled_value(line_pattern)
Hocron class receives as argument a string. It expects that string to in a valid hOCR format.
References
hOCR is an open standard of data representation for formatted text obtained from optical character recognition (OCR).
Metadata
Release files for hocron 0.5.0
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 | |
|---|---|---|---|---|
| hocron-0.5.0.tar.gz | 18.4 kB | Without provenance | Details |
Release files / hocron-0.5.0.tar.gz
| Download URL | hocron-0.5.0.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99df7e28a364a4cf5735f7b2e3a9f6d6df7dc2003244804186f2a2b7a68908af
|
|
BLAKE2b-256 checksum How to use checksums |
b9920146114ab7f7c5a578cf0f425efbad72da1f7f357337608ee4e4f4664db0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4
|
Security for hocron 0.5.0
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.