Lilypad
An open-source LLM engineering platform built on these principles:
- Building with LLMs introduces non-determinisim to your code, which requires...
- Tracking all input/output pairs and the exact version of the code that produced them so you can...
- Continuously evaluate and optimize your code, which requires...
- Involving business users and domain experts.
Quickstart
To get started with Lilypad:
- Create an account at https://app.lilypad.so. You can also run Lilypad locally if you'd prefer.
- Navigate to your organization settings
- Create a project, and then create an API key for that project.
a. Save your
LILYPAD_PROJECT_IDandLILYPAD_API_KEY(e.g. in a.envfile). - Install Lilypad:
uv add "python-lilypad[openai]" # specify your provider of choice - Run your first generation:
import os
import lilypad
from openai import OpenAI # use your provider of choice
os.environ["LILYPAD_PROJECT_ID"] = "..."
os.environ["LILYPAD_API_KEY"] = "..."
os.environ["OPENAI_API_KEY"] = "..."
lilypad.configure() # Automatically trace LLM API calls
client = OpenAI()
@lilypad.generation() # Automatically version non-deterministic functions
def answer_question(question: str) -> str | None:
completion = client.chat.completions.create(
model="gpt-4o",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": f"Answer this question: {question}"},
],
)
return completion.choices[0].message.content
answer = answer_question("What is the capital of France?")
print(answer)
# > The capital of France is Paris.
And that's it! Now you've versioned and traced your first non-deterministic function with Lilypad.
Usage
We are actively working on this library and it's documentation, which you can find here
Versioning
Lilypad uses Semantic Versioning
License
This project uses a dual-license model:
Open-Source License (MIT)
Except for the contents and code contained in any ee directory or sub-directory of this repository, which is covered by a commercial license (see below), all code in this repository is licensed under the terms of the MIT License.
Enterprise Edition (EE) License
The contents and code of any ee directory or sub-directory of this repository are licensed under the Enterprise Edition (EE) License. This content and code is only available to users using the Lilypad App or those with a valid Enterprise Edition (EE) License. See ee/LICENSE for the full terms.
Self-Hosting:
For those looking to self-host the Enterprise Edition (EE) of Lilypad, please reach out to sales@mirascope.com.
You can find more information about self-hosting here.
Metadata
Release files for python-lilypad 0.0.34
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_lilypad-0.0.34.tar.gz | 828.0 kB | Without provenance | Details for python_lilypad-0.0.34.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_lilypad-0.0.34-py3-none-any.whl | Python 3 | none | any | Details for python_lilypad-0.0.34-py3-none-any.whl |
Total release size: 2.5 MB
Release files / python_lilypad-0.0.34.tar.gz
| Download URL | python_lilypad-0.0.34.tar.gz |
|---|---|
| Size | 828.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abe7373cec6e00f1ef82aef3edfb16935ad4dc270ea7806689d6c9a3f47a96fe
|
|
BLAKE2b-256 checksum How to use checksums |
9fca0aa00c0cd8cdeda217fd8958a26635aeaa88a4f675820d04b33542af49ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.5.6
|
Release files / python_lilypad-0.0.34-py3-none-any.whl
| Download URL | python_lilypad-0.0.34-py3-none-any.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0aebee4c138e7b5c430673fbbabb704d22abd9337f515d0372e0e5bdd1dbe14b
|
|
BLAKE2b-256 checksum How to use checksums |
a3ca3c941f0655dafec21be28f71728b4dca5a259ecf4b96d14dc8a7b0e25a56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.5.6
|
Security for python-lilypad 0.0.34
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.