Skip to main content

Shared models, secret scanner, and client SDK for Synapse services.

Project description

synapse-sdk

Shared Python building blocks for Synapse — a Universal Memory Layer for AI coding tools.

This package is the dependency surface that the Synapse API server, the Temporal workers, and the developer CLI all share:

  • synapse_sdk.models — pydantic models for Chunk, SearchRequest, SearchResult, TokenPayload, SecretScanResult.
  • synapse_sdk.scanner — pre-flight secret scanner. Files containing AWS keys, GitHub tokens, private keys, etc. are rejected wholesale before embedding. 0% leak rate is a non-negotiable Synapse KPI.
  • synapse_sdk.exceptions — shared exception types.

Install

pip install synapse-context-sdk

The Python import name stays synapse_sdk:

from synapse_sdk.scanner import scan_for_secrets
from synapse_sdk.models import SearchRequest

Usage — secret scanner

from synapse_sdk.scanner import scan_for_secrets

result = scan_for_secrets(file_text, file_path="src/auth.py")
if result.is_rejected:
    print(f"Skipped: secret of type {result.secret_type}")

Usage — models

from synapse_sdk.models import SearchRequest

req = SearchRequest(query="how does JWT auth work", limit=10)

See the main repo for the full service architecture.

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

synapse_context_sdk-0.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

synapse_context_sdk-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file synapse_context_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: synapse_context_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for synapse_context_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6203878a9b67bdabf7f2a1642646a3bac94aba0a34a9e9ee1eee66e627afd331
MD5 efafc5fa899b0ce7c445a244430d1a0c
BLAKE2b-256 cb901716fa82ce192c77314cc21a30d85bd8fd0819a1b2718106e6dfe22fdf06

See more details on using hashes here.

Provenance

The following attestation bundles were made for synapse_context_sdk-0.1.0.tar.gz:

Publisher: sdk-release.yml on abhinav162/synapse

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file synapse_context_sdk-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for synapse_context_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 caaee18913489ca84e338dc93c50aa9b00078f1a7887a710d4213996ba57d9b2
MD5 6f51d27cebc1df92debe0db8570109f6
BLAKE2b-256 0d742694706b5b4a6f8c61a5a0d6d18921b223c31c8136c7737c742d1c2d6799

See more details on using hashes here.

Provenance

The following attestation bundles were made for synapse_context_sdk-0.1.0-py3-none-any.whl:

Publisher: sdk-release.yml on abhinav162/synapse

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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