Skip to main content

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.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_to_json-1.8.1-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file llm_to_json-1.8.1.tar.gz.

File metadata

  • Download URL: llm_to_json-1.8.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for llm_to_json-1.8.1.tar.gz
Algorithm Hash digest
SHA256 23432ae6cbab812ca8f4c56fc94f57d689014d8879e84760fb7e34a5d05bafb6
MD5 9a57cb21bc9dc9ce16e77b4b990a7db5
BLAKE2b-256 a8683005000ee676bcd946ec8fbecb2d474033d09ce99a848c5047d33d6132ce

See more details on using hashes here.

File details

Details for the file llm_to_json-1.8.1-py3-none-any.whl.

File metadata

  • Download URL: llm_to_json-1.8.1-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

Hashes for llm_to_json-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8b471a5781d1ffe6937b4f389de5914a1723f6a435a2fad8bf82d7a493c2002
MD5 0f3d463a4ece797e1022edb2a1f6a96d
BLAKE2b-256 3787f95a012384602d285dc2617f28ea502a8a86e02c01a9fc5116e0037c10ea

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.8.1

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page