Skip to main content

vinc-client

Python client for the Vinc REST v1 API. Vinc is a knowledge graph you share with AI: decisions, records and documents your team wrote, with the reasons attached.

This package reads that graph for an agent and writes to it only when your code asks. It is the base of vinc-langgraph and vinc-agent-framework.

Install

pip install vinc-client

Keys and spaces

Create a member key in your Vinc account. A vinc_ro_ key reads; a vinc_sk_ key can also write. Use a read-only key wherever the agent only needs context.

from vinc_client import VincClient

vinc = VincClient()                      # reads VINC_API_KEY
team = VincClient(space="<team id>")     # a team's shared graph instead of your personal one

Context for a model turn

block = vinc.get_context("Why are our colour tokens stored as OKLCH?")
if block:
    system_prompt += "\n\n" + block

get_context makes one call per turn. It returns None when nothing matched, and also when Vinc is unreachable or the daily limit is spent, so the model call goes on without it. A key or space problem raises, because it will not fix itself.

The block is fenced and introduced as data, not instructions: text in the graph can be written by anyone with access to it, so the model is told to treat it as reference material.

Reading

vinc.brief("release checklist")          # one node, its excerpts and relations
vinc.search("spacing scale", limit=10)   # text and meaning search
vinc.recall(domain="vinc/design")        # episode timeline, newest first
vinc.node("decision:tokens-are-oklch")   # one node by id

Writing, on purpose

Nothing in this package writes because a conversation happened. Record an episode when a person approved what the agent did:

vinc = VincClient(api_key=WRITE_KEY)     # vinc_sk_
vinc.record_episode(
    "Fixed contrast on the dark secondary button",
    summary="Token text-secondary moved to pass 4.5:1 on the dark surface.",
    about=["decision:tokens-are-oklch"],
)

Every about id is read before the write, so a typo raises VincNotFound instead of creating an empty node.

Errors

Class Meaning
VincAuthError missing, malformed, refused or read-only key; configuration is wrong
VincNotFound the node, document or space does not exist for this key
VincInvalidArgument the request was malformed or refused (for example a topic limit)
VincQuotaExceeded the daily limit is spent; retry_after is in seconds
VincUnavailable network or server failure; for a write, check details["write_may_have_applied"]
VincPartialWrite part of a write was skipped; result holds what the server said

Async

AsyncVincClient has the same methods, awaited.

License

MIT

Metadata

Release files for vinc-client 0.1.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 vinc-client 0.1.0
File Size Uploaded
vinc_client-0.1.0.tar.gz 18.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vinc-client 0.1.0
File Interpreter ABI Platform
vinc_client-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.8 kB

Release files / vinc_client-0.1.0.tar.gz

Download URL vinc_client-0.1.0.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c50c86dd755c58cb9a3dc5b0d698f606ec8896c5d1818c16f8675a087a049efb
BLAKE2b-256 checksum
How to use checksums
8674955280da160cff1db06258243e089faf0458e5cdbf4368c7ba43e9fec45f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

Release files / vinc_client-0.1.0-py3-none-any.whl

Download URL vinc_client-0.1.0-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e66d5ebd1e81c59577df6ce2db0afe957a3276e479100ede87a78fdf9f7c482d
BLAKE2b-256 checksum
How to use checksums
45959b37c7a365c24dc2279e250e7b39902833d34d8a5d112f0c6ff7184a3979
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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