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.2.tar.gz (10.9 kB view hashes)

Uploaded Source

Built Distribution

promplate-0.3.1.2-py3-none-any.whl (14.3 kB view hashes)

Uploaded Python 3

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