Tiny wrapper exposing Prompture helpers to convert LLM output into JSON.
Project description
llm-to-json
Tiny wrapper around prompture with a minimal, easy-to-use API for converting LLM output (or raw text) into JSON according to a schema.
Install:
pip install llm-to-json
Usage:
from llm_to_json import from_llm_text
schema = {"name": "string", "age": "int"}
print(from_llm_text("Name: Juan Age: 30", schema))
For full docs and advanced features, see the main project: Prompture — https://github.com/jhd3197/prompture
Project details
Release history Release notifications | RSS feed
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 llm_to_json-1.0.3.tar.gz.
File metadata
- Download URL: llm_to_json-1.0.3.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f651a254e395506f12bf626089b5572ffe9c7208b1e418cd7bbda48d8fa19c9f
|
|
| MD5 |
4022289eb390871b4bc9deda7be40815
|
|
| BLAKE2b-256 |
f7fe31d809111f695c4bfec1bc3c2b290fdac6d68445807af78534e6e47ac416
|
File details
Details for the file llm_to_json-1.0.3-py3-none-any.whl.
File metadata
- Download URL: llm_to_json-1.0.3-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56988efd9a215c33f884aac838f60a31fb8f654c12aa8067fcec4aeeea38daa4
|
|
| MD5 |
172b637bf5dd9c88fec2030a118bd8f4
|
|
| BLAKE2b-256 |
e0c22aafd061e2a6dd892e3e8be539ee7cbe4546aeb225b3de4a9dae24a88704
|