Skip to main content

elbi-core

The SDK for building derivations: versioned, testable functions that transform your data and serve the result to AI agents over the Model Context Protocol.

pip install elbi-core          # the SDK on its own
pip install "elbi-core[cli]"   # and the `elbi` command line
pip install "elbi-core[data]"  # and columnar formats (parquet)

For the chat app and web UI as well, install elbi instead.

from elbi import Artifact, Context, Dataset, derivation, serve


@derivation(
    inputs={"sales": Dataset("sales")},
    serve=serve.table(title="Churn risk", max_rows=50),
)
def churn_risk(ctx: Context) -> Artifact:
    """Per-customer churn-risk scores."""
    rows = ctx.input("sales").rows
    scored = [
        {"customer_id": r["customer_id"], "risk": 1 / (1 + float(r["amount"]))}
        for r in rows
    ]
    return Artifact.table(scored)

See the repository README and the Open Derivation Spec for more.

Licensed under Apache-2.0.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elbi_core-0.1.0.tar.gz (502.1 kB view details)

Uploaded Source

Built Distribution

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

elbi_core-0.1.0-py3-none-any.whl (450.7 kB view details)

Uploaded Python 3

File details

Details for the file elbi_core-0.1.0.tar.gz.

File metadata

  • Download URL: elbi_core-0.1.0.tar.gz
  • Upload date:
  • Size: 502.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for elbi_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 13c52d1b4957f7f197d63cd37a5b0ecb041dee9b6ee1883a2e9935d6df0f2dde
MD5 ffd2b23e5ad8eff15ed90f46b8c5ff7b
BLAKE2b-256 0db665ad74d06267d46cb7bb8a4f05e13501a3c2efdec188fbd1048ca186e48b

See more details on using hashes here.

Provenance

The following attestation bundles were made for elbi_core-0.1.0.tar.gz:

Publisher: release.yml on Intelligible/elbi

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

File details

Details for the file elbi_core-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: elbi_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 450.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for elbi_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 56a91f102e0978e69683186d451333b6941752006c5ea5bb440e2901ae112d2e
MD5 30f2b6bafc12f7a8b5dd62a893cb509d
BLAKE2b-256 0d90b1fff49249847337c92c97099cceebcff2ec02936d6d9ca672d151c806c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for elbi_core-0.1.0-py3-none-any.whl:

Publisher: release.yml on Intelligible/elbi

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page