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.1.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.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nubix_ai-1.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 7b6a7e6a3adf1d2664091973efce965add35fc8c6e916a4d3e329ff5728b683d
MD5 85123ae97e6dd4e2fb533b467e78eafb
BLAKE2b-256 04b821bd3f04d65bb4653dd4252b7f1c1990eb44e255796a2bffbed4e5ba5f30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nubix_ai-1.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d3392294c81eeb42ce25d70599e169a10dfde94a85641ecfa451c832e53fbf4
MD5 26319c32b7b4a870b5ea2c5b444a092c
BLAKE2b-256 719401fcb704f0dfcf0aa5678298cc05348b3726d3087e4f44083fe2896f4e0a

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