The Python client for a Jammi engine (import `jammi`) — one connect() for local (embedded) and remote targets
pip install jammi-ai==0.51.0 Copy PIP instructions
The Python client (import jammi) for a Jammi engine — one connect(target) for local (embedded) and remote targets.
jammi-ai is the base client: a universal py3-none-any wheel that links no candle/ML stack — just grpcio + protobuf + pyarrow — for production where the engine runs behind a server. It also discovers the compiled in-process engine as an OPTIONAL backend: pip install jammi-ai[embedded] pulls jammi-ai-native, and then connect("file://…") resolves the local target to an in-process engine (direct FFI) through the SAME front door. Absent the extra, the base stays native-free and a file:// target raises a truthful NoEmbeddedEngineError.
import jammi db = jammi.connect("https://engine.example.com") db.add_source("patents", url="s3://corpus/patents.parquet", format="parquet") db.generate_embeddings(source="patents", model="local:tiny_bert", columns=["abstract"], key="id", modality="text") q = db.encode_query(model="local:tiny_bert", query="quantum computing") hits = db.search("patents", query=q, k=5) # -> pyarrow.Table connect(target) is the Python mirror of the Rust Jammi::open(Target): transport is config, not a code path.
A bearer-protected endpoint is reached by attaching credentials to the channel — the bearer rides the channel (attached once at connect), not threaded through every call:
from jammi import connect, BearerCredentials db = connect("https://engine.example.com", credentials=BearerCredentials(token)) The same works on a plaintext grpc:// target for local development. The bearer covers the typed gRPC verbs (on the channel) and db.sql() (the Flight SQL lane, per call) alike.
Scaling local→remote is an env flip (connect(os.environ["JAMMI_TARGET"])) with no code change. The lean deploy build and the embedded build are ONE package — the same import jammi, connect unchanged — differing only by whether the [embedded] extra is present.
The wire stubs under jammi/_generated/ are generated from the same jammi.v1 proto the engine, npm client, and embed wheel speak — one source, no parallel schema. Regenerate after a proto change:
pip install -e '.[dev]' make generate Project links Data verified by PyPI on Oct 1, 2026 Data provided by the project maintainers, verified at the time the release was uploaded to PyPI. Bug Tracker Documentation Homepage Repository Key dates PyPI data Data sourced directly from PyPI's database. Released: Oct 1, 2026 Latest release 1 maintainer PyPI data Data sourced directly from PyPI's database. vchakilam Credits Author: F-Inverse
client embeddings grpc inference vector-search
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.




