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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
llm_to_json-1.8.0.tar.gz
(1.8 kB
view details)
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.8.0.tar.gz.
File metadata
- Download URL: llm_to_json-1.8.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
434f7d725f4b9efa6306964701b2e7b1f84298d83522f689225d2c9319566c32
|
|
| MD5 |
17912c9303e2e119ce52dc212769630d
|
|
| BLAKE2b-256 |
31bf407a8e351431c1e55ed565bec13b40bef45c22d71525a0c5077545a303d2
|
File details
Details for the file llm_to_json-1.8.0-py3-none-any.whl.
File metadata
- Download URL: llm_to_json-1.8.0-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c74990c3f215bf8bbcc8fac0de18e2d5d7dc6eace3ec77cb21a5cd847d2d4e9
|
|
| MD5 |
a992d2d4847dfddb73683331f95b416a
|
|
| BLAKE2b-256 |
50558c63174700e4596e8fd76cc336fd4c010cc6544e57f07d0ffc12ae74fe3e
|