Skip to main content

veccore

veccore is a ports-and-adapters vector substrate for embed -> index -> search -> hydrate. It provides backend- and embedder-independent retrieval mechanics, content-sha idempotency, typed capability failures, estimate-first ingest, and audit seams while leaving payload policy and record hydration with the consuming application.

Install

From a checkout of the private standalone repository:

pip install -e .
pip install -e '.[cli]'
pip install -e '.[mcp]'
pip install -e '.[openai]'
pip install -e '.[qdrant]'

Extras can be combined, for example pip install -e '.[cli,mcp,openai,qdrant]'. The core package requires Python 3.11 or newer and has NumPy as its sole hard runtime dependency. Local embedder extras are st and fastembed.

Quickstart: Python API

from veccore import AuditEnvelope, CollectionRegistry, CollectionSpec, MockEmbedder, SqliteNumpyStore, VecCore

store = SqliteNumpyStore(path="<sqlite-path>")
core = VecCore(CollectionRegistry(), {"sqlite_numpy": store}, {"mock": MockEmbedder()})
core.register(CollectionSpec(name="<collection-name>", backend="sqlite_numpy", embedder="mock", dim=64))
core.embed_upsert(
    "<collection-name>",
    [{"id": "<item-id>", "text": "<complete text>", "payload": {"source": "<source-id>"}}],
    AuditEnvelope(who="<caller>", why="<reason>"),
)
hits = core.search(
    "<collection-name>", "<query>", 5,
    AuditEnvelope(who="<caller>", why="<reason>"),
)

Each hit contains id, score, and consumer payload. Hydrate the full record from your own system of record by id.

Quickstart: CLI

The CLI is generated from the shared capability registry and reads complete JSON configuration:

veccore ingest --config <config-path> --collection <collection-name> --items '<json-array>' --who <caller> --why <reason>
veccore search --config <config-path> --collection <collection-name> --query '<query>' --k 5 --who <caller> --why <reason>

veccore --help lists all seven commands. See usecase.md for every command and the configuration schema.

Quickstart: MCP

from pathlib import Path
from veccore.mcp import build_mcp_surface
from veccore.surfaces.runtime import load_surface_context

build_mcp_surface(load_surface_context(Path("<config-path>"))).run()

The MCP tools are generated from the same registry as the API and CLI.

Network gating

make_embedder("openai:<model>") installs SpendguardGate by default. Immediately before network egress it requires active spendguard enforcement and refuses if enforcement is missing. An explicit injected gate may replace the default. Mock and local embedders do not egress and use NullGate.

Documentation

Source repository: github.com/ashdamle/veccore (private). License: MIT.

Metadata

Release files for veccore 0.4.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 veccore 0.4.0
File Size Uploaded Provenance Actions
veccore-0.4.0.tar.gz 88.0 kB With provenance Details for veccore-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for veccore 0.4.0
File Interpreter ABI Platform Actions
veccore-0.4.0-py3-none-any.whl Python 3 none any Details for veccore-0.4.0-py3-none-any.whl

Total release size: 152.2 kB

Release files / veccore-0.4.0.tar.gz

Download URL veccore-0.4.0.tar.gz
Size 88.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1645d1f68a3a550d726acc295aa40656d0a24d4413a69ebfa83af5e2387e1c89
BLAKE2b-256 checksum
How to use checksums
651b2f6748255b6fcee8c389a93999df2922dbb81a9780f6e1900c1396aea87b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / veccore-0.4.0-py3-none-any.whl

Download URL veccore-0.4.0-py3-none-any.whl
Size 64.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
485f4a5af158774f10676b6bc6b34572ab35163f18df80fd3990fb23540bdbbe
BLAKE2b-256 checksum
How to use checksums
ac17e0324868485570e9116f7e86259352acd52af56abf6b86a87032fe3ecee4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for veccore 0.4.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for veccore-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

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.

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