ctxvault
Python SDK for CtxVault — Persistent Memory for AI.
Install
pip install ctxvault
Usage
from ctxvault import CtxVault
vault = CtxVault(
api_key="cv_your_key",
project="your-project",
base_url="https://ctxvault.dev",
)
# Store a memory
vault.remember(
type="decision",
title="Use PostgreSQL for persistence",
content="Chose PostgreSQL with pgvector for vector search support.",
tags=["database", "architecture"],
)
# Search memories
results = vault.recall("database decisions")
# Get context pack
pack = vault.context_pack("project architecture")
print(pack["pack"])
# List all memories
items = vault.list(status="verified")
API
CtxVault(api_key, project, base_url=None)
vault.remember(type, title, content, importance=5, tags=None) — Store a memory
vault.recall(query, k=5) — Search memories
vault.context_pack(query, max_tokens=2000) — Generate context pack
vault.list(status=None, type=None) — List memory items
vault.verify(id) — Verify a candidate
vault.pin(id) — Pin a verified item
vault.deprecate(id, reason) — Deprecate an item
License
MIT
Metadata
Release files for ctxvault-sdk 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ctxvault_sdk-0.1.1.tar.gz | 3.4 kB | Without provenance | Details for ctxvault_sdk-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ctxvault_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for ctxvault_sdk-0.1.1-py3-none-any.whl |
Total release size: 7.2 kB
Release files / ctxvault_sdk-0.1.1.tar.gz
| Download URL | ctxvault_sdk-0.1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9371ed1bb79b55129d5d0e10fedb2bb42888c2c1028fa6b24d3fedc40ad3baa
|
|
BLAKE2b-256 checksum How to use checksums |
81d0523785d3e0ebb1f078899ad5e599fca2cab92b8c79f9279eaa6bb22601ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / ctxvault_sdk-0.1.1-py3-none-any.whl
| Download URL | ctxvault_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94bd147e6a6193cc136a03d0c46a93f9c3cf5b10246f1c9b97b547fc01f61600
|
|
BLAKE2b-256 checksum How to use checksums |
a6a4242ccc48109ba98224ffeacec3a378d7a1290438fdf2695b8e540390cbc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for ctxvault-sdk 0.1.1
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.