PineconePDFExtractor
PineconePDFExtractor is a Python library for extracting text from PDF files for pinecone.
Installation
Use the package manager pip to install PineconePDFExtractor.
pip install PineconePDFExtractor
Check the latest version here:
https://pypi.org/project/PineconePDFExtractor/
Usage
from pdf.PineconePDFExtractor import PdfProcessor
# Create a PineconePDFExtractor instance with a batch size of 200
extractor = PdfProcessor(200)
# Process a list of PDF files
result = extractor.process_files(['file1.pdf', 'file2.pdf'])
# The result is a dictionary with the batch size and a list of documents
# Each document is a dictionary with the id (file name without extension), metadata (number of pages), source (file path), and text (extracted text)
## Example result
# {
# 'batch_size': 200,
# 'documents': [
# {
# 'id': 'file1',
# 'metadata': {
# 'pages': 1
# },
# 'source': 'file1.pdf',
# 'text': 'This is the extracted text from file1.pdf'
# },
# {
# 'id': 'file2',
# 'metadata': {
# 'pages': 2
# },
# 'source': 'file2.pdf',
# 'text': 'This is the extracted text from file2.pdf'
# }
# ]
# }
Metadata
Release files for PineconePDFExtractor 0.1.8
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 |
|---|---|---|---|---|
| PineconePDFExtractor-0.1.8.tar.gz | 3.1 kB | Without provenance | Details for PineconePDFExtractor-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PineconePDFExtractor-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for PineconePDFExtractor-0.1.8-py3-none-any.whl |
Total release size: 7.3 kB
Release files / PineconePDFExtractor-0.1.8.tar.gz
| Download URL | PineconePDFExtractor-0.1.8.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1406ef6566590c2da60a2186d0dbd47f58ae55a3e3bfab889503939daf3324bb
|
|
BLAKE2b-256 checksum How to use checksums |
8643cbc3117412ad9b70a4724ae7bb60f49309b431bbddfb99ddd9bd6dbb24db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / PineconePDFExtractor-0.1.8-py3-none-any.whl
| Download URL | PineconePDFExtractor-0.1.8-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bea71d4505f5361bd297de8fbccc8dd4d74f30b299d52e4913c9d6a8ef533257
|
|
BLAKE2b-256 checksum How to use checksums |
5c21dea542a1ed7ad2cee8151d7ba44511c7a815e8c5ddf4f75113d81e051358
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for PineconePDFExtractor 0.1.8
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.