Skip to main content

Python SDK for veriova-Persistent Memory for AI

Project description

veriova

Python SDK for veriova — Persistent Memory for AI.

For the MCP server (Claude, Codex, Cursor), use veriova-mcp instead.

Install

pip install veriova-sdk

Quick start

from veriova import veriova

cv = veriova(api_key="cv_...")

# Push memory candidates
cv.push("my-project", [
    {"type": "decision", "title": "Use PostgreSQL", "content": "Chose pgvector for semantic search.", "importance": 8},
    {"type": "convention", "title": "Snake case filenames", "content": "All source files use snake_case."},
])

# Semantic search
results = cv.search("my-project", "database choice")

# Context pack for LLM injection
ctx = cv.context("my-project", "how do we handle auth?")
print(ctx["pack"])  # inject into your system prompt

API

Constructor

veriova(api_key, base_url="https://veriova.com", timeout=30)
Param Default Description
api_key required Your API key (cv_...)
base_url https://veriova.com API base URL
timeout 30 Request timeout in seconds

Projects

cv.projects()                                          # List all projects
cv.create_project(name, slug, description=None)        # Create a project

Memory

cv.push(project_slug, items, source_id=None)           # Push memory candidates
cv.search(project_slug, query, k=10)                   # Semantic search
cv.context(project_slug, query, max_tokens=2000)       # Context pack for LLM injection
cv.list_memory(project_slug, status=None, type=None)   # List items with filters
cv.get_memory(memory_id)                               # Get a single item
cv.verify(memory_id)                                   # Mark as verified
cv.pin(memory_id)                                      # Pin (prevents decay)
cv.deprecate(memory_id)                                # Deprecate an item
cv.re_verify(memory_id)                                # Re-verify an item
cv.supersede(memory_id, new_content)                   # Replace content, link old item

Memory item types: decision, convention, pattern, lesson, snippet, reference

Scaffold

cv.scaffold_available()                                # List available templates and skills
cv.scaffold(
    project_slug,
    targets=["all"],       # "claude", "cursor", "codex", "all"
    templates=["core"],    # "core", "strict", "review"
    skills=[],
    dry_run=False,
)

Skills

cv.list_skills()                                       # List account skills
cv.create_skill(
    name, trigger_description, procedure,
    context_keys=None, language=None, tags=None, description=None
)
cv.get_skill(slug)                                     # Get skill with resolved context
cv.install_skill(skill_id)                             # Install from public registry
cv.skill_registry(q=None, language=None, tag=None)     # Browse public registry

Pulse

cv.pulse_profile()                                     # Developer skill profile
cv.pulse_trends(days=30)                               # Engagement trends
cv.pulse_sessions(limit=10)                            # Recent sessions

Health

cv.health()                                            # API health check

Error handling

from veriova import veriova
from veriova.client import veriovaError

try:
    cv.push("my-project", items)
except veriovaError as e:
    print(e, e.status_code)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

veriova_sdk-0.2.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

veriova_sdk-0.2.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file veriova_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: veriova_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for veriova_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bb832fccb546a801170724fcee3153bfcdcb2ded863aa50bb57a3b9cd673f925
MD5 50cac49d3abd132cdd418ccf0aea160a
BLAKE2b-256 4760659f2c2672e1cba0e1c63f3d03bf1682f6b50f3f9ec87470a1f56c836021

See more details on using hashes here.

File details

Details for the file veriova_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: veriova_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for veriova_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 788bd1cc5155b165ee53155cfbd67867a210890b2ed799d832591d6d70a52438
MD5 a17c9b52aeceab04e65a0f8fc0a6d99b
BLAKE2b-256 2a60c49b7b601292dda3f9c65645a68ea836239a7bdcc22b2b3649809ce2c32c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page