Skip to main content

AI library used for document processing and LLM calls.

Project description

nubix-ai

AI library used for document processing and LLM calls.

Installation

pip install nubix-ai

Usage

from pydantic import BaseModel
from nubix_ai import NubixAI

# Initialize the client
client = NubixAI(
    docling_api_key="your-docling-api-key",
    openai_api_key="your-openai-api-key"
)

# Process a document
markdown, metadata = client.call_docling_process_file("document.pdf")

# Or send a PDF through the full-PDF LLM markdown endpoint
markdown, metadata = client.call_docling_process_pdf_llm("document.pdf")

# Extract structured data with LLM
class MySchema(BaseModel):
    field1: str
    field2: int

result = client.extract_with_llm(
    markdown_text=markdown,
    prompt_input="Extract the following information:",
    PydanticInput=MySchema
)

Release

Create a PyPI API token for the nubix-ai project and export it as UV_PUBLISH_TOKEN.

export UV_PUBLISH_TOKEN=pypi-...

Publish the current version from pyproject.toml:

uv build
uv publish --index pypi

Or use the helper script from the project root:

scripts/publish.sh

To set the version first and publish in one step:

scripts/publish.sh 1.1.1

To test the upload flow without touching production PyPI:

uv build
uv publish --index testpypi

License

MIT

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

nubix_ai-1.1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

nubix_ai-1.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file nubix_ai-1.1.0.tar.gz.

File metadata

  • Download URL: nubix_ai-1.1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for nubix_ai-1.1.0.tar.gz
Algorithm Hash digest
SHA256 43827715c94f99ad6ebeb03a98fb6387b89e955e7e81ea7dbb0863a15e99f49c
MD5 af6b829d61ad8c6755c4212134130cfd
BLAKE2b-256 000c3b9cf5ef2299b12a2b7226c6e04b75309bbd69d004ebaff7084c2bc28697

See more details on using hashes here.

File details

Details for the file nubix_ai-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: nubix_ai-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for nubix_ai-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 021a57c376196f741146836aedd67eeabc45851b95f78b619301def010733c97
MD5 e13c42b70bd50f78846b0a5cfac92cf3
BLAKE2b-256 6ab989de5c828e5d98ce07358cb62a609da2b7354551ae13eb209b0d66944802

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