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.0.30.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.0.30-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for llm_to_json-1.0.30.tar.gz
Algorithm Hash digest
SHA256 e582ead13346a8a757b14e4205cb9d76f69812c9669e7de0c389b00b37bb9dee
MD5 a958fa86210eea3e05bf6e26d9ffa338
BLAKE2b-256 e321aee5c6630861193e0fe979bc532e2c7bf967807417148ecf2af801a16ee6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llm_to_json-1.0.30-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.3

File hashes

Hashes for llm_to_json-1.0.30-py3-none-any.whl
Algorithm Hash digest
SHA256 e8c08ca016af6b84ddcea974f54ff19304cbe665febba7865eadfc19cf076e3e
MD5 9ebbca362a6cf34212e8a520e61d072d
BLAKE2b-256 299d653bb1f2228032a09a486c8f0e5dedea77e72b8af7d839cf05347e6961c8

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