Skip to main content

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

llm_to_json-1.2.0.tar.gz (1.8 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.2.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_to_json-1.2.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for llm_to_json-1.2.0.tar.gz
Algorithm Hash digest
SHA256 86c57c9437beba75fb0cdead29d89ad2015980561e43d90442aacfccdc462619
MD5 0fc6b75e2f8f54a5c565524f95711275
BLAKE2b-256 51f4daa06070d0e9f86fe21add170fc7854a9a02748ed09d7ed393c180067fce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llm_to_json-1.2.0-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.5

File hashes

Hashes for llm_to_json-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a6d404183d0750269db85906da299d00350a661f3c2ab51bf67ef82ea915e3a
MD5 a71bd1763a9ac1d780c8bfc356e7a878
BLAKE2b-256 a3573675672cfc3494209fea223dd7a0f2b407a2597306d4ff93eb0c7037943b

See more details on using hashes here.

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