Skip to main content

cross-language prompt engineering framework

Project description

Promplate

</Promplate/> = /prompt/ + <template>

Promplate is a prompting framework focusing on developing experience. However, it can also be a super-convenient SDK for simple LLM calls. Promplate progressively enhance your prompting workflow. And it values flexibility as well as perfect conventions. Learn more

Installation

pip install promplate

Development

  • use poetry to manage dependencies.
  • use isort to sort import statements.
  • use black to format code.
  • use pyright to check type annotations.

IDE Support 🌹

I try to make the syntax compatible with Jinja2. So for now I recommend using Jinja2 highlight settings.

Future Features (or TODOs?)

  • more documentation
  • javascript implementation
  • improve error handling
    • possible ways would be similar to Jinja2
  • streaming support
  • unit tests
    • coverage report here
  • the order of callbacks is reversed for on_leave and end_process

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

promplate-0.3.1.1.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

promplate-0.3.1.1-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file promplate-0.3.1.1.tar.gz.

File metadata

  • Download URL: promplate-0.3.1.1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Windows/11

File hashes

Hashes for promplate-0.3.1.1.tar.gz
Algorithm Hash digest
SHA256 cc71d885ea97a4cc8f76491d6211f02f02c785db39d9d4a096f15937e324ce17
MD5 dd2018a5f717c677c11ea1500da7e816
BLAKE2b-256 601096de35c6afc111bdb4b29d59c33c9c9f06682002c954cccb7bf6129f6df7

See more details on using hashes here.

File details

Details for the file promplate-0.3.1.1-py3-none-any.whl.

File metadata

  • Download URL: promplate-0.3.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Windows/11

File hashes

Hashes for promplate-0.3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ff9b76849c3ac3a89a5010317c3406a6288a789e4e728b80952ed208dffe6d0
MD5 176184ede9f68b15ca78a66169963064
BLAKE2b-256 db641add18e6a182c4f6b455e1c6de9864678ce302b5653399ca3ca7cc9a93de

See more details on using hashes here.

Supported by

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