Skip to main content

Zero-Context SDK

Lightweight Python SDK for the Zero-Context memory engine API.

Installation

uv add zero-context

Quickstart

from zero_context import MemoryConfig, ZeroContext

mem = ZeroContext(
    api_key="zc_live_your_api_key",
    config=MemoryConfig(default_top_k=5),
)

# 1. Add Memory
ids = mem.add(
    [
        "User prefers Python and Rust for backend development.",
        "User's favorite framework is FastAPI.",
    ],
    user_id="user_alice",
)

# 2. Search Memory
results = mem.search("What stack does the user prefer?", user_id="user_alice")

# 3. Update Memory
updated = mem.update(ids[0], text="User prefers Python, Rust, and Go.")

# 4. Delete Memory
mem.delete(ids[1])

Testing

uv run python -m pytest
uv run python -m ruff check .
uv run python -m mypy

Metadata

Release files for zero-context 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zero-context 0.2.0
File Size Uploaded Provenance Actions
zero_context-0.2.0.tar.gz 51.9 kB Without provenance Details for zero_context-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zero-context 0.2.0
File Interpreter ABI Platform Actions
zero_context-0.2.0-py3-none-any.whl Python 3 none any Details for zero_context-0.2.0-py3-none-any.whl

Total release size: 57.1 kB

Release files / zero_context-0.2.0.tar.gz

Download URL zero_context-0.2.0.tar.gz
Size 51.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5559f0f0fe82d6517d250603226d9190b23e467d0c075003c70fc0ca88e6e2fd
BLAKE2b-256 checksum
How to use checksums
7e39198039b4fa6afb0fce9bd4ef5e2242c9ee9b698db88680c47b9c593351cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / zero_context-0.2.0-py3-none-any.whl

Download URL zero_context-0.2.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c6937ee52a0796a06025ce19a4972e084396bedc52ed9a6e99dc541f233da7e
BLAKE2b-256 checksum
How to use checksums
786327e909d6724b8585c14e8edd023c9efc966912bf4ceb293667387c127b82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for zero-context 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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