Skip to main content

An intelligent document analysis library for Python.

Project description

DocLM - Intelligent Document Analysis

DocLM is a Python library that uses advanced AI to analyze any PDF document and generate comprehensive summary reports with smart analytics.

Features

  • Multi-Format Support: Analyze PDF, DOCX, TXT, and more.
  • Smart Summarization: AI-powered summaries that capture the essence of your documents.
  • Detailed Analytics: Get key insights and statistics from your content.
  • Google Colab Ready: Seamlessly integrate with Google Colab for cloud-based analysis.

How to Get Your API Token

  1. Run the backend server: python app.py.
  2. Open your browser to http://127.0.0.1:5000.
  3. Click "Get Started" and fill out the signup form.
  4. Your unique API token will be displayed and emailed to you.

Installation

pip install DocLM

Quick Start

from DocLM import DocumentAnalyzer

# Initialize the analyzer with your token
analyzer = DocumentAnalyzer(api_token="your_token_here")

# Analyze any PDF document
# Make sure you have a file named 'document.pdf' in the same directory
try:
    report = analyzer.analyze("document.pdf")

    # Get the smart analytics report
    print("Summary:")
    print(report.summary)
    print("\nKey Insights:")
    for insight in report.key_insights:
        print(f"- {insight}")

except FileNotFoundError:
    print("Error: 'document.pdf' not found. Please create a sample PDF to analyze.")
except Exception as e:
    print(f"An error occurred: {e}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

doclm-1.0.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

doclm-1.0.1-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file doclm-1.0.1.tar.gz.

File metadata

  • Download URL: doclm-1.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for doclm-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6ad7eb799c346b1da7408ff9e48a52ae49f2d632c854108f2a5ed197ef164993
MD5 e109f089a46b6da394833cc7f6fe5d61
BLAKE2b-256 ea2e6751c3a0fcb5ce0f353c4680a99a7262154b4f8e8157f8fed19506787054

See more details on using hashes here.

File details

Details for the file doclm-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: doclm-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for doclm-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61d8b501775556f5253b01bde5f92bb988a991d0bfdd41a2ac37c2fe91232c44
MD5 a62dc7ae9271f44adad40adf3b39d1c4
BLAKE2b-256 5ca1dc9381b60524478d2e8134a88f96e52f41ee3e96c60afbb2df7f6e8fee8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page