Better LLMs Structured Outputs
Project description
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:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file belso-0.0.3.tar.gz.
File metadata
- Download URL: belso-0.0.3.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c5c6c7d216443a58c438ef84f05ccfd281986692d96d98301e8517012ba9825
|
|
| MD5 |
987c0fd4519658a13b95ade289b0a5f9
|
|
| BLAKE2b-256 |
923f228b47a47406a0a79ee784fe72083c1a87928da969625f4b6a0b6e1331fe
|
File details
Details for the file belso-0.0.3-py3-none-any.whl.
File metadata
- Download URL: belso-0.0.3-py3-none-any.whl
- Upload date:
- Size: 35.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fc91baf1a0921921a6d9e33d6aa361cbd86590a9987af2056140981340e22be
|
|
| MD5 |
f6632da6332485c8ef3435cbbaa4d7e5
|
|
| BLAKE2b-256 |
6b03218189be5192d5e9120f2253185d42cb6c6069e9607f41edc7dd1573b31f
|