promplate


Namepromplate JSON
Version 0.3.4.4 PyPI version JSON
download
home_pagehttps://promplate.dev/
SummaryPrompt engineering framework for humans
upload_time2024-04-26 19:19:17
maintainerNone
docs_urlNone
authorMuspi Merol
requires_python<4.0,>=3.10
licenseMIT
keywords prompt template nlp llm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Promplate

```text
</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](https://promplate.dev/py)

## Installation

```shell
pip install promplate
```

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

## Documentation

You can visit our official docs site at [docs.py.promplate.dev](https://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)](https://promplate-core.vercel.app/) and [Netlify(py3.8)](https://promplate-core.netlify.app/). There is [a coverage report](https://promplate-python-coverage.onrender.com/) too.

## Future Features (or TODOs?)

- [ ] more documentation
- [ ] javascript implementation
- [ ] improve error handling
  - possible ways would be similar to [`Jinja2`](https://github.com/pallets/jinja/blob/main/src/jinja2/debug.py)

            

Raw data

            {
    "_id": null,
    "home_page": "https://promplate.dev/",
    "name": "promplate",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": "prompt, template, nlp, llm",
    "author": "Muspi Merol",
    "author_email": "me@promplate.dev",
    "download_url": "https://files.pythonhosted.org/packages/c4/b8/60b146d7bb37d9cbed50a39176c381d4f5243d90691f212eadc9f73831cc/promplate-0.3.4.4.tar.gz",
    "platform": null,
    "description": "# Promplate\n\n```text\n</Promplate/> = <template> // prompt\n```\n\n**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](https://promplate.dev/py)\n\n## Installation\n\n```shell\npip install promplate\n```\n\n**Promplate** supports both CPython and PyPy, from `3.8` to `3.12`. It even supports running in browsers through wasm implementations of python.\n\n## Documentation\n\nYou can visit our official docs site at [docs.py.promplate.dev](https://docs.py.promplate.dev/).\n\n## IDE Support \ud83c\udf39\n\n**Promplate** is fully typed, which means static type checker will find bugs correctly (if you use `pyright` for type checking).\n\nWe recommend using VS Code as your IDE when coding with promplate, because it natively uses pyright.\n\nThe language design of promplate is similar to `Jinja2`. So you can use the `.j2` file extension for template files for syntax highlight.\n\n## Development\n\n- use `poetry` to manage dependencies.\n- use `isort` to sort import statements.\n- use `black` to format code.\n- use `pyright` to check type annotations.\n\nDevelopment should be done on `dev` branch, using `>=3.10` language features. The `master` branch is used for `py3.8` compatible releases.\n\n**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)](https://promplate-core.vercel.app/) and [Netlify(py3.8)](https://promplate-core.netlify.app/). There is [a coverage report](https://promplate-python-coverage.onrender.com/) too.\n\n## Future Features (or TODOs?)\n\n- [ ] more documentation\n- [ ] javascript implementation\n- [ ] improve error handling\n  - possible ways would be similar to [`Jinja2`](https://github.com/pallets/jinja/blob/main/src/jinja2/debug.py)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Prompt engineering framework for humans",
    "version": "0.3.4.4",
    "project_urls": {
        "Documentation": "https://docs.py.promplate.dev/",
        "Homepage": "https://promplate.dev/",
        "Repository": "https://github.com/promplate/core"
    },
    "split_keywords": [
        "prompt",
        " template",
        " nlp",
        " llm"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7b946853313159df7807d7513d88ae86582923d58c1eb62b249bb0e0d71a2a27",
                "md5": "0bfdba76a8f6f30c1f342182196a2f76",
                "sha256": "6dcb1950f9fc0128b38d1ac00e030490ca61166c9618ad1c856beb6b92be22dd"
            },
            "downloads": -1,
            "filename": "promplate-0.3.4.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0bfdba76a8f6f30c1f342182196a2f76",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 15365,
            "upload_time": "2024-04-26T19:19:15",
            "upload_time_iso_8601": "2024-04-26T19:19:15.359141Z",
            "url": "https://files.pythonhosted.org/packages/7b/94/6853313159df7807d7513d88ae86582923d58c1eb62b249bb0e0d71a2a27/promplate-0.3.4.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c4b860b146d7bb37d9cbed50a39176c381d4f5243d90691f212eadc9f73831cc",
                "md5": "cd0098820295a83199698247a18bf269",
                "sha256": "1482fa0c34d4ca019271f7f3bd9fd7795601f4c31f6600fec557cec12efdc676"
            },
            "downloads": -1,
            "filename": "promplate-0.3.4.4.tar.gz",
            "has_sig": false,
            "md5_digest": "cd0098820295a83199698247a18bf269",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 11966,
            "upload_time": "2024-04-26T19:19:17",
            "upload_time_iso_8601": "2024-04-26T19:19:17.867410Z",
            "url": "https://files.pythonhosted.org/packages/c4/b8/60b146d7bb37d9cbed50a39176c381d4f5243d90691f212eadc9f73831cc/promplate-0.3.4.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-26 19:19:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "promplate",
    "github_project": "core",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "promplate"
}
        
Elapsed time: 0.24565s