Pre-release
This release is a pre-release and may not be stable for production use.
Spark Pdf
Spark-Pdf is a library for processing documents using Apache Spark.
It includes the following features:
- Load PDF documents/Images
- Extract text from PDF documents/Images
- Extract images from PDF documents
- OCR Images/PDF documents
- Run NER on text extracted from PDF documents/Images
- Visualize NER results
Installation
Requirements
- Python 3.10
- Apache Spark 3.5 or higher
- Java 8
- Tesseract 4.0 or higher
pip install pyspark-pdf
Development
Setup
git clone
cd spark-pdf
Install dependencies
poetry install
Run tests
poetry run pytest --cov=sparkpdf --cov-report=html:coverage_report tests/
Build package
poetry build
Build documentation
poetry run sphinx-build -M html source build
Docker
Build image:
docker build -t spark-pdf .
Run container:
docker run --rm -it --entrypoint bash spark-pdf:latest
Release
poetry version patch
poetry publish --build
Metadata
Release files for pyspark-pdf 0.1.0rc9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyspark_pdf-0.1.0rc9.tar.gz | 183.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyspark_pdf-0.1.0rc9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 372.4 kB
Release files / pyspark_pdf-0.1.0rc9.tar.gz
| Download URL | pyspark_pdf-0.1.0rc9.tar.gz |
|---|---|
| Size | 183.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0dd383dccc83c2cc5ba75a6a9b70a233e02d3eb1fdccbf920d5f438b628119e7
|
|
BLAKE2b-256 checksum How to use checksums |
80de62da07c85091610957e9393ea1af0c92dcadb6a11a796b00c8e2cf646bb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.11.6 Linux/6.7.10-060710-generic
|
Release files / pyspark_pdf-0.1.0rc9-py3-none-any.whl
| Download URL | pyspark_pdf-0.1.0rc9-py3-none-any.whl |
|---|---|
| Size | 189.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3bb3f5ae8150397fa0ecda6281ac5f6d289aadb71212ae4272504d9f7927784b
|
|
BLAKE2b-256 checksum How to use checksums |
84c365a2dea2a56e96a44a21f7e55847e1aab896d0eb928e7463b0178aed8375
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.11.6 Linux/6.7.10-060710-generic
|