Zenbase Python SDK
Installation
Zenbase requires Python ≥3.10. You can install it using your favorite package manager:
pip install zenbase
poetry add zenbase
rye add zenbase
Usage
Zenbase is designed to require minimal changes to your existing codebase and integrate seamlessly with your existing eval/observability platforms. It works with any AI SDK (OpenAI, Anthropic, Cohere, Langchain, etc.).
Labeled Few-Shot Learning Cookbooks:
LabeledFewShot will be useful for tasks that are just one layer of prompts.
| Cookbook | Run in Colab |
|---|---|
| without_integration.ipynb | |
| langsmith.ipynb | |
| arize.ipynb | |
| langfuse.ipynb | |
| parea.ipynb | |
| lunary.ipynb |
Bootstrap Few-Shot Learning Cookbooks:
BootstrapFewShot will be useful for tasks that are multiple layers of prompts.
| Cookbook | Run in Colab |
|---|---|
| langsmith.ipynb | |
| arize.ipynb | |
| langfuse.ipynb | |
| parea.ipynb | |
| lunary.ipynb |
Predefined Cookbooks:
| Cookbook | Description | Run in Colab |
|---|---|---|
| Single Class Classifier | Basic implementation of a single class classifier | |
| Synthetic Data Generation | Generate synthetic data for single class classification | |
| Classifier with Synthetic Data | Train and test a single class classifier using synthetic data |
Development setup
This repo uses Python 3.10 and rye to manage dependencies. Once you've gotten rye installed, you can install dependencies by running:
rye sync
And activate the virtualenv with:
. .venv/bin/activate
You can run tests with:
rye test # pytest -sv to see prints and verbose output
rye test -- -m helpers # integration tests with helpers
Metadata
Release files for zenbase 0.0.22
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 |
|---|---|---|---|---|
| zenbase-0.0.22.tar.gz | 80.4 kB | Without provenance | Details for zenbase-0.0.22.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zenbase-0.0.22-py3-none-any.whl | Python 3 | none | any | Details for zenbase-0.0.22-py3-none-any.whl |
Total release size: 119.7 kB
Release files / zenbase-0.0.22.tar.gz
| Download URL | zenbase-0.0.22.tar.gz |
|---|---|
| Size | 80.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2201e62f15332d8a61cfafc45ebec8e62bd9c0d1b77bfa723c7763d81ba138b7
|
|
BLAKE2b-256 checksum How to use checksums |
774aaa1ac40b889473573c32996178287266d8c1a527bbd3a5542c54619814ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / zenbase-0.0.22-py3-none-any.whl
| Download URL | zenbase-0.0.22-py3-none-any.whl |
|---|---|
| Size | 39.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a2f36bbc59d650d52fe1e758718cecc9fb265e0fcdd743b6fd6c05fe6c4a0f6
|
|
BLAKE2b-256 checksum How to use checksums |
482313ba659bb7e761d78e0e8ec24365ed58906cae94ca9a8196c2b2cf55ea7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for zenbase 0.0.22
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.