belso – Better LLMs Structured Outputs
belso is a developer-friendly Python toolkit for defining, validating, and translating structured data in Large Language Models (LLMs). Compatible with major providers. Designed for simplicity, power, and extensibility.
🚀 Overview
belso (Better LLMs Structured Outputs) streamlines how developers work with structured outputs from LLMs. It offers a consistent API for schema definition, validation, and translation—helping you bridge the gap between human language and structured data, regardless of provider.
🔑 Key Features
- ✅ Unified Schema Interface – define once, use everywhere via Python dataclasses or Pydantic models
- 🔀 Multi-Provider Compatibility – seamless I/O with:
- OpenAI
- Anthropic
- Google AI
- Mistral AI
- Hugging Face
- Ollama
- LangChain
- 🔁 Bi-directional Format Translation – convert schemas across LLM formats with a single call
- 🧱 Supports Nesting & Arrays – works with deeply nested fields and typed collections
- 🧪 Validation & Inspection – ensure schema integrity with built-in tools
- 📦 Serialization – import/export schemas via JSON, YAML, and XML
- ⚡ Lightweight & Fast – minimal dependencies, optimal for production use
📦 Installation
pip install belso
🧪 Quick Start
Explore the examples directory to see how belso can help you structure LLM outputs with ease.
📚 Documentation
Full documentation is available on the official site. Includes guides, API reference, and advanced usage examples.
📄 License
This project is distributed under the terms of the MIT License.
☕ Support My Work
If you find belso useful, consider supporting the project:
Metadata
Release files for belso 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| belso-0.0.4.tar.gz | 30.9 kB | Without provenance | Details for belso-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| belso-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for belso-0.0.4-py3-none-any.whl |
Total release size: 66.0 kB
Release files / belso-0.0.4.tar.gz
| Download URL | belso-0.0.4.tar.gz |
|---|---|
| Size | 30.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83f06d105e50ce99c636dbe735d09d84c2d23fe0dbe0fbb673ee7d57eaefddf3
|
|
BLAKE2b-256 checksum How to use checksums |
045e270038eef5a640428da651d53de73cae5d68e96630a21a8d1106ff7e3746
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / belso-0.0.4-py3-none-any.whl
| Download URL | belso-0.0.4-py3-none-any.whl |
|---|---|
| Size | 35.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ff5975092111a97a50416bf47fc78e0cc3ec7819b7923eb5f39b5649ffbddf5
|
|
BLAKE2b-256 checksum How to use checksums |
6dac04d67257a3e007bc9bba258a276479fe9a881b3d4efbf9a90a5b8520fe6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Security for belso 0.0.4
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.