Skip to main content

Prompt engineering framework for humans

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. Try online

Installation

pip install promplate

Promplate supports both CPython and PyPy, from 3.8 to 3.13. It even supports running in browsers through wasm implementations of python.

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 and Netlify. There is a coverage report too.

Future Features (or TODOs?)

  • more documentation
  • javascript implementation
  • improved error handling
    • display compiled code when error occurs through linecache or tempfile

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

Uploaded Source

Built Distribution

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

promplate-0.3.5.6-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: promplate-0.3.5.6.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for promplate-0.3.5.6.tar.gz
Algorithm Hash digest
SHA256 abdc574d32240fcb343d52322a053a3eafd6c912654e7bbf186441b591bf9a00
MD5 514431b9cee08e396e42c41f592b5df7
BLAKE2b-256 85651cb1ced2f2521588a6022bcc6b81c09cd19a45d964c5ea5017bd57e9b4a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for promplate-0.3.5.6.tar.gz:

Publisher: publish.yml on promplate/core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: promplate-0.3.5.6-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for promplate-0.3.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e5d6562afcf3e02b22101f68684798c232741bc17241b517cefe60ee8a1a7450
MD5 06d7e8778475dbbea462f0d5848c3593
BLAKE2b-256 cf7207fa4351d359fb44e96d4f21d1f90a923ea606033d5f9862da0a2f3718c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for promplate-0.3.5.6-py3-none-any.whl:

Publisher: publish.yml on promplate/core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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