Spark-Pdf is a library for processing documents using Apache Spark
Project description
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 5.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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyspark_pdf-0.1.0rc5.tar.gz
(32.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyspark_pdf-0.1.0rc5.tar.gz.
File metadata
- Download URL: pyspark_pdf-0.1.0rc5.tar.gz
- Upload date:
- Size: 32.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.6 Linux/6.7.10-060710-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
950472ecbb525bfa4a8d4cb04a1a03099c866660dc14b22e2537749b4adfea15
|
|
| MD5 |
31ccb304aa534ce2b7bff1d25fe1d58b
|
|
| BLAKE2b-256 |
5185e658a894ccf46ba70cd1e9cd175b47edb947a65ac325952ded33b4b4ba76
|
File details
Details for the file pyspark_pdf-0.1.0rc5-py3-none-any.whl.
File metadata
- Download URL: pyspark_pdf-0.1.0rc5-py3-none-any.whl
- Upload date:
- Size: 39.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.6 Linux/6.7.10-060710-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ca154684114953cb84981f9ec0dbf30dd66df24a40ee964ffb0d68c0826ac4b
|
|
| MD5 |
e15bcecf33c8b52823807fbe5697e8c2
|
|
| BLAKE2b-256 |
94629f7ec4ccfcf595b49b242d577a6288704ee45b8765b391ae847d81b92c97
|