Skip to main content

No project description provided

Project description

DocChain

This package can be used to generate complex structured documents from Specs using LLMm models.

Document is an abstraction that represent generated data, e.g. it could be any text data in markdown or HTML, configuration in JSON, YAML or other formats, Python objects or classes, or any other data that can be generated by LLMs.

Spec contains document requirements. It holds general information about the generated document.

Section is a composite part of a Document. Document itself is a Section. Such design allows inclusion of Documents inside another documents.

Generator generates Document from the provided Spec. Each generator can be configured with a list of steps that are executed before or after generation.

Middleware is a callable that can modify Spec or the generated Documents. It acts the same as middleware in an HTTP framework, it can be used for variety of tasks. E.g. transforming, formatting or linting generated document ot its parts.

TODO

  • Store stats in an SQLite database.
  • Blocks for HTML, Markdown, Python, one line Python, templates.
  • Add middleware to plan steps.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docchain-0.0.6.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

docchain-0.0.6-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file docchain-0.0.6.tar.gz.

File metadata

  • Download URL: docchain-0.0.6.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for docchain-0.0.6.tar.gz
Algorithm Hash digest
SHA256 d47063da00e6b5e292a8feb5712a824f5a2716fc313e9dc86c5bcf37501326e5
MD5 bde22eee47a0cd683eb5ba4735e9a0f1
BLAKE2b-256 fdc3674823f2f7d0f1c1b50dfb57e222fbc3dd38501e7f74c8655d82e344383b

See more details on using hashes here.

File details

Details for the file docchain-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: docchain-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for docchain-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 25edc84d32a2ca5ace23a733cd2301cfabe68355e607c6889d43d5631fdffbfd
MD5 3e010a87f29687e608c1715dd9ef2f02
BLAKE2b-256 335e28a194c21dd0a5f8748fd776f4050b7087911e1a8dc5f05801c79a5b56b9

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