pdfluent-haystack
A Haystack converter for PDFluent. It reads a
PDF into structure-aware Document chunks in reading order, each with the page, box and kind it came
from in its meta, so an answer can cite its source.
Install
pip install pdfluent-haystack # hosted API mode
pip install "pdfluent-haystack[local]" # also the local engine
Two modes
Local mode works today. API mode needs the hosted PDFluent API, which is not generally available yet.
from pdfluent_haystack import PDFluentConverter
# Local: the engine runs on this machine and the PDF does not leave it.
docs = PDFluentConverter().run(sources=["report.pdf"])["documents"]
# API: with a key (or PDFLUENT_API_KEY) the PDF is sent to the hosted PDFluent API for that call.
# The service keeps no document. Chunking options are API-only: by_title, basic, by_page.
docs = PDFluentConverter(api_key="...", chunking_strategy="by_title").run(sources=["report.pdf"])["documents"]
sources takes paths or ByteStream objects. meta is merged into every document of a source.
Pages count from 0, as in the other PDFluent loaders. The key is read from the argument or the
environment, sent in the x-api-key header, and never appears in a repr or an error.
Licence
This integration is MIT licensed; see LICENSE. The PDFluent SDK it calls in local mode (pdfluent on PyPI) is licensed separately, under AGPL-3.0 or a commercial licence.
Metadata
Release files for pdfluent-haystack 0.1.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 | Actions |
|---|---|---|---|---|
| pdfluent_haystack-0.1.0.tar.gz | 15.5 kB | Without provenance | Details for pdfluent_haystack-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdfluent_haystack-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pdfluent_haystack-0.1.0-py3-none-any.whl |
Total release size: 25.6 kB
Release files / pdfluent_haystack-0.1.0.tar.gz
| Download URL | pdfluent_haystack-0.1.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3652401ca21b265c9c87113042d7298255da08ae482c66df99ee9536df802e6e
|
|
BLAKE2b-256 checksum How to use checksums |
fe90181359f5d49bb7f6df55962713ab0fb701e28c3e516c58e91d22e3cba6fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Release files / pdfluent_haystack-0.1.0-py3-none-any.whl
| Download URL | pdfluent_haystack-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
757b5b16346fa470764868aaea61a432d3d13960e4aed48c650e4e9b80c00c3f
|
|
BLAKE2b-256 checksum How to use checksums |
13df9ac4290449a3d579a07112b85ce19e063267c664069763a0597405f5105e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Security for pdfluent-haystack 0.1.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.