skillfed

chalkpy

Python SDK for Chalk

chalkpy v2.154.36 621.4K downloads/30d#5,715 on PyPI
License unclear Active released

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 chalkpy

uv

uv add chalkpy

poetry

poetry add chalkpy

Installing 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

Programming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: Information AnalysisTopic :: Software Development :: Code GeneratorsTopic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Tags

feature engineering pipelinesml feature storeonline feature servingbatch feature computationfeature resolver frameworkml data infrastructurefeature caching and orchestration
feature-storeml-infrastructuredata-pipeline

More Python Modules packages