Skip to main content

SmartPDF

A simple python library for AI-powered PDF documents processing.

Downloads Downloads Downloads

Requirements

  • Linux, Windows, MacOS
  • Python 3.8.+
  • OpenAI API Key

Install package

pip install smart_pdf

Install the latest version

git clone https://github.com/bes-dev/smart_pdf.git
cd smart_pdf
pip install -r requirements.txt
pip install .

Install the latest version

git clone https://github.com/bes-dev/random_face.git
cd random_face
pip install -r requirements.txt
python download_model.py
pip install .

Demo

python -m smart_pdf.smart_pdf --help

Example

from smart_pdf import SmartPDF
smart_doc = SmartPDF(
    path=<path_to_pdf>,
    openai_api_key=<openai_api_key>
)
print(smart_doc)
print(f"Summary: {smart_doc.summary()}")
print("Press q! to exit")
while True:
    request = input("> ")
    if request == "q!":
        break
    print(smart_doc.smart_search(request))

Metadata

Release files for smart-pdf 2023.9.11.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for smart-pdf 2023.9.11.1
File Interpreter ABI Platform Actions
smart_pdf-2023.9.11.1-py3-none-any.whl Python 3 none any Details for smart_pdf-2023.9.11.1-py3-none-any.whl

Release files / smart_pdf-2023.9.11.1-py3-none-any.whl

Download URL smart_pdf-2023.9.11.1-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d5e929a8662fa320ad8259c48dd033a920407a0acd0728c09f027c8a04166bf
BLAKE2b-256 checksum
How to use checksums
c68657b096c6691af41788822d69cd1437ded843e9955e7042d26be315d17ec0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for smart-pdf 2023.9.11.1

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.

Release history Release notifications | RSS feed

This release

2023.9.11.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page