python-lilypad


Namepython-lilypad JSON
Version 0.0.6 PyPI version JSON
download
home_pageNone
SummaryAn open-source prompt engineering framework.
upload_time2024-10-17 20:01:27
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT License Copyright (c) 2024 Mirascope Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords artificial intelligence developer tools evaluation llm llm tools prompt engineering
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Lilypad

> [!WARNING]
> __Project is in alpha phase__
> 
> This means that things like the user interface, database schemas, etc. are still subject to change. We do not yet recommend fully relying on this project in production, but we've found it works quite well for local development in its current stage.

An open-source prompt engineering framework built on these principles:

- Prompt engineering is an optimization process, which requires...
- Automatic versioning and tracing
- Developer-centric prompt template editor
- Proper syncing between prompts and code

> [!IMPORTANT]
> __We're looking for early design partners!__
> 
> We are also working on tooling for improved collaboration between technical and non-technical team members. This is particularly important for involving domain experts who may not have the technical chops to contribute to a code base.
>
> If you're interested, [join our community](https://join.slack.com/t/mirascope-community/shared_invite/zt-2ilqhvmki-FB6LWluInUCkkjYD3oSjNA) and DM William Bakst :)
>
> There are limited spots.

## 30 Second Quickstart

Install Lilypad, specifying the provider(s) you intend to use, and set your API key:

```bash
pip install "python-lilypad[openai]"

export OPENAI_API_KEY=XXXXX
```

Create your first synced prompt to recommend a book.

For example, you could use the prompt `Recommend a fantasy book`:

```bash
lilypad start                  # initialize local project
lilypad create recommend_book  # creates a synced LLM function
lilypad run recommend_book     # runs the function (and opens editor)
```

Once you hit "Submit" you'll see the function run in your shell. Follow the link to see the version and trace in an interactive UI.

Next, try editing the function signature to take a `genre: str` argument. When you run the function again it will open the editor and give you access to the `{genre}` template variable (with autocomplete).

## Usage

We are actively working on this library and it's documentation, which you can find [here](https://lilypad.mirascope.com/docs)

## Versioning

Lilypad uses [Semantic Versioning](https://semver.org/)

## License

This project is currently licensed under the terms of the [MIT License](https://github.com/Mirascope/mirascope/blob/main/LICENSE); however, we expect certain future features to be licensed separately, which we will make extremely clear and evident.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "python-lilypad",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "William Bakst <william@mirascope.io>",
    "keywords": "artificial intelligence, developer tools, evaluation, llm, llm tools, prompt engineering",
    "author": null,
    "author_email": "William Bakst <william@mirascope.io>, Brendan Kao <brendan@mirascope.io>",
    "download_url": "https://files.pythonhosted.org/packages/91/2b/cf561a331283228fc9ac2853b2f396dc4422e634f0098a4360977895e435/python_lilypad-0.0.6.tar.gz",
    "platform": null,
    "description": "# Lilypad\n\n> [!WARNING]\n> __Project is in alpha phase__\n> \n> This means that things like the user interface, database schemas, etc. are still subject to change. We do not yet recommend fully relying on this project in production, but we've found it works quite well for local development in its current stage.\n\nAn open-source prompt engineering framework built on these principles:\n\n- Prompt engineering is an optimization process, which requires...\n- Automatic versioning and tracing\n- Developer-centric prompt template editor\n- Proper syncing between prompts and code\n\n> [!IMPORTANT]\n> __We're looking for early design partners!__\n> \n> We are also working on tooling for improved collaboration between technical and non-technical team members. This is particularly important for involving domain experts who may not have the technical chops to contribute to a code base.\n>\n> If you're interested, [join our community](https://join.slack.com/t/mirascope-community/shared_invite/zt-2ilqhvmki-FB6LWluInUCkkjYD3oSjNA) and DM William Bakst :)\n>\n> There are limited spots.\n\n## 30 Second Quickstart\n\nInstall Lilypad, specifying the provider(s) you intend to use, and set your API key:\n\n```bash\npip install \"python-lilypad[openai]\"\n\nexport OPENAI_API_KEY=XXXXX\n```\n\nCreate your first synced prompt to recommend a book.\n\nFor example, you could use the prompt `Recommend a fantasy book`:\n\n```bash\nlilypad start                  # initialize local project\nlilypad create recommend_book  # creates a synced LLM function\nlilypad run recommend_book     # runs the function (and opens editor)\n```\n\nOnce you hit \"Submit\" you'll see the function run in your shell. Follow the link to see the version and trace in an interactive UI.\n\nNext, try editing the function signature to take a `genre: str` argument. When you run the function again it will open the editor and give you access to the `{genre}` template variable (with autocomplete).\n\n## Usage\n\nWe are actively working on this library and it's documentation, which you can find [here](https://lilypad.mirascope.com/docs)\n\n## Versioning\n\nLilypad uses [Semantic Versioning](https://semver.org/)\n\n## License\n\nThis project is currently licensed under the terms of the [MIT License](https://github.com/Mirascope/mirascope/blob/main/LICENSE); however, we expect certain future features to be licensed separately, which we will make extremely clear and evident.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Mirascope  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "An open-source prompt engineering framework.",
    "version": "0.0.6",
    "project_urls": {
        "Changelog": "https://github.com/Mirascope/lilypad/releases",
        "Documentation": "https://lilypad.mirascope.com/docs",
        "Issues": "https://github.com/Mirascope/lilypad/issues",
        "Repository": "https://github.com/Mirascope/lilypad"
    },
    "split_keywords": [
        "artificial intelligence",
        " developer tools",
        " evaluation",
        " llm",
        " llm tools",
        " prompt engineering"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "75c6149c0f234427ef1cea31bcdc570dc25e76fb0ce67bec5a1ff2f09e40d3f8",
                "md5": "2aee0cd02382a388b735db29bac7f875",
                "sha256": "acc49a79a3e8f410470b0fea3109ab3f821f1d170c370029b8b57bfb721483ac"
            },
            "downloads": -1,
            "filename": "python_lilypad-0.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2aee0cd02382a388b735db29bac7f875",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 356799,
            "upload_time": "2024-10-17T20:01:25",
            "upload_time_iso_8601": "2024-10-17T20:01:25.947202Z",
            "url": "https://files.pythonhosted.org/packages/75/c6/149c0f234427ef1cea31bcdc570dc25e76fb0ce67bec5a1ff2f09e40d3f8/python_lilypad-0.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "912bcf561a331283228fc9ac2853b2f396dc4422e634f0098a4360977895e435",
                "md5": "0db340ca80c5767358ed140357492ccf",
                "sha256": "c0bf70adcc1fa83545f74a5ff5e77cb9c5175ed51d89d0a1bcbf80f2331c6865"
            },
            "downloads": -1,
            "filename": "python_lilypad-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "0db340ca80c5767358ed140357492ccf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 344303,
            "upload_time": "2024-10-17T20:01:27",
            "upload_time_iso_8601": "2024-10-17T20:01:27.311662Z",
            "url": "https://files.pythonhosted.org/packages/91/2b/cf561a331283228fc9ac2853b2f396dc4422e634f0098a4360977895e435/python_lilypad-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-17 20:01:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Mirascope",
    "github_project": "lilypad",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "python-lilypad"
}
        
Elapsed time: 0.65141s