chalkpy
Python SDK for Chalk
What it is and what it does
Chalk is a feature engineering framework that lets you define machine learning features as Python functions and automatically orchestrates them into pipelines. You write resolvers—decorated functions that compute features from SQL, REST APIs, data warehouses, or other sources—and Chalk handles the orchestration, caching, scheduling, and deployment. It supports both online serving (low-latency feature queries for inference) and offline training (temporally-consistent historical feature sets for model development).
The package integrates with standard Python libraries (pydantic for schemas, requests for HTTP, SQL connectors for databases) and uses a Rust-based execution engine underneath for performance. It provides declarative caching policies, scheduled batch ingestion, reverse ETL to bring slow data sources online, and a REST API for querying features in production. The core idea is that the same source code serves both training and inference, ensuring feature consistency and reducing development overhead.
Use it for:
- Define and deploy feature pipelines that compute user credit scores, fraud signals, or recommendation features from multiple databases and APIs.
- Build training datasets with temporal consistency—retrieve historical feature values as they existed at specific past timestamps for model training.
- Serve low-latency features to production models via REST API with declarative caching and staleness policies to balance freshness and cost.
- Ingest batch data from data warehouses on a schedule and automatically make it available for both offline analysis and online serving.
- Integrate vendor APIs and expensive external data sources with caching to reduce latency and per-call costs in online inference.
- Track model provenance and dataset lineage by storing and versioning feature computations alongside training data.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Chalk is a Python SDK for building and deploying machine learning feature pipelines that compute features from multiple data sources and serve them for both online inference and offline training.
Yes, with conditions. Chalk is actively maintained and has low install friction. It solves a real problem—coordinating feature computation across multiple data sources for both training and serving—and integrates well with standard Python ML tools. However, the license is unclear, so verify terms before production use. Also confirm whether your use case aligns with Chalk's architecture. If you need a feature store with unified online/offline semantics and don't have license concerns, it's worth evaluating.
Install
chalkpy on PyPI
pip
pip install chalkpyuv
uv add chalkpypoetry
poetry add chalkpyInstalling chalkpy
Before you install
Low install friction with a pure-Python wheel. Active maintenance as of 2026-08-13. Depends on 16 runtime packages including grpcio, pydantic, and a Rust-backed chalkpy-rs component, which are all standard ML/data stack libraries.
License in practice
License treatment is unclear—no SPDX identifier or raw license text is available. Verify the license terms before using in proprietary or commercial projects.
Quickstart
pip install chalkpy
from chalkpy import features, online
@features
class User:
id: int
name: str
@online
def get_user(uid: User.id) -> User:
return User(id=uid, name="example")
from chalkpy import ChalkClient
result = ChalkClient().query(input={User.id: 1}, output=[User.name])
Requires Python >=3.10,<3.15. Depends on chalkpy-rs, a compiled Rust component.
Verify before relying
- Whether the Chalk platform requires a hosted backend or if local/self-hosted execution is supported.
- Exact terms of the license and any restrictions on commercial use.
- Performance characteristics and latency guarantees for online feature serving.
- Whether the package can be used standalone or requires integration with Chalk's managed platform.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 16 — chalkpy-rs, dataclasses_json, executing, googleapis-common-protos, grpcio, ipywidgets, numpy, orjson, protobuf, pyarrow, pydantic, pyopenssl, pyyaml, requests, rich, typing_extensions |
| Maintenance | actively maintained — 1 days since the last release |
| First released | |
| Downloads | 621,410/month — #5,715 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: chalkpy-2.154.36-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
azureml-featurestoreProvides Python SDK access to Azure ML Feature…
permissive · top 5,000 on PyPI
tectonTecton is a Python SDK for defining, testing,…
unclear · top 5,000 on PyPI
azureml-pipelineBuilds, optimizes, and manages machine learning…
unclear · top 15,000 on PyPI
feastFeast is an open-source feature store that…
permissive · top 15,000 on PyPI
azure-ai-mlProvides a Python client library for…
permissive · top 5,000 on PyPI
azureml-pipeline-stepsDefines step types for building computation…
unclear · top 15,000 on PyPI
matricePython SDK for building machine learning…
permissive · top 5,000 on PyPI
azureml-pipeline-coreProvides core pipeline infrastructure for Azure…
unclear · top 15,000 on PyPI
sagemaker-serveProvides model serving and deployment…
permissive · top 5,000 on PyPI
sagemaker-mlopsProvides high-level orchestration for Amazon…
permissive · top 5,000 on PyPI