Skip to main content

Krypton Toolkit

PyPI version Python Versions License

Context Engineering Framework for LLMs and Agents.

Krypton Toolkit helps you extract high-fidelity content from complex documents like PDFs to feed into your Large Language Models.

Features

  • LLM-based Parsing: Use state-of-the-art vision models to extract content from PDFs with layout preservation.
  • Generic Parsing: Fast, rule-based parsing for simpler documents.
  • Smart Splitting: Split documents into semantic chunks or fixed-size windows with overlap.

Installation

pip install krypton-toolkit

Quick Start

Basic Usage

from krypton.parser import LLMParser, ParsingStrategy

# Initialize parser
parser = LLMParser(model="gpt-4o", api_key="sk-...")

# Parse document
doc = parser.parse("path/to/document.pdf", strategy=ParsingStrategy.VISUAL)

# Access pages
print(f"Parsed {len(doc.pages)} pages.")

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Release files for krypton-toolkit 0.1.0

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

Source distribution (sdist)

Source distribution for krypton-toolkit 0.1.0
File Size Uploaded
krypton_toolkit-0.1.0.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for krypton-toolkit 0.1.0
File Interpreter ABI Platform
krypton_toolkit-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / krypton_toolkit-0.1.0.tar.gz

Download URL krypton_toolkit-0.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
67cab8f602325c461861be8d9f3036d6c706976fa750525c6a5baa9aa905d870
BLAKE2b-256 checksum
How to use checksums
4cc7db358969dde1192e0f38c891c1002b1f57fda8999ada39aa5df2a6284799
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.0 Darwin/25.1.0

Release files / krypton_toolkit-0.1.0-py3-none-any.whl

Download URL krypton_toolkit-0.1.0-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b145e163ee03210f9e28f0c3a350688f2875f988ba6c0ebe40a98a116a47b5bc
BLAKE2b-256 checksum
How to use checksums
4a29ca0074f7adceb19f85637c7a4a31832aebbf5543f6bf9362b6659a4baa5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.0 Darwin/25.1.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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