Skip to main content

cross-language prompt engineering framework

Project description

Promplate

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

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

Promplate supports both CPython and PyPy, from 3.8 to 3.12.

Documentation

You can visit our official docs site at docs.py.promplate.dev.

IDE Support 🌹

Promplate is fully typed, which means static type checker will find bugs correctly (if you use pyright for type checking).

We recommend using VS Code as your IDE when coding with promplate, because it natively uses pyright.

The language design of promplate is similar to Jinja2. So you can use the .j2 file extension for template files for syntax highlight.

Development

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

Development should be done on dev branch, using >=3.10 language features. The master branch is used for py3.8 compatible releases.

Promplate is well tested with pytest. GitHub Actions are used to run tests and linting. And there are test results continually generated on Vercel(py3.9) and Netlify(py3.8). There is a coverage report too.

Future Features (or TODOs?)

  • more documentation
  • javascript implementation
  • improve error handling
    • possible ways would be similar to Jinja2

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.3.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

promplate-0.3.3.1-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: promplate-0.3.3.1.tar.gz
  • Upload date:
  • Size: 11.5 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.3.1.tar.gz
Algorithm Hash digest
SHA256 8632c6f67a285b3470f5745ef50249ef254ca0b01e3617cb95d63d2236a2892d
MD5 446bb3eeb9fd80f7efdd33e73f6473c3
BLAKE2b-256 c1842d175b8a8245b0d841cf31fd00f1a58f1725344447006239c0d83cdff4f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: promplate-0.3.3.1-py3-none-any.whl
  • Upload date:
  • Size: 15.0 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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d0184777ee27ad4850c43b1059817453b408d9c9d290fc501d51885e055127d
MD5 afc15c5f20aea7e5df8652a410396376
BLAKE2b-256 2daee362bc9501765669fd712298f21c27688265adae0556d41ed6face5adcb8

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