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 forChunk,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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6203878a9b67bdabf7f2a1642646a3bac94aba0a34a9e9ee1eee66e627afd331
|
|
| MD5 |
efafc5fa899b0ce7c445a244430d1a0c
|
|
| BLAKE2b-256 |
cb901716fa82ce192c77314cc21a30d85bd8fd0819a1b2718106e6dfe22fdf06
|
Provenance
The following attestation bundles were made for synapse_context_sdk-0.1.0.tar.gz:
Publisher:
sdk-release.yml on abhinav162/synapse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
synapse_context_sdk-0.1.0.tar.gz -
Subject digest:
6203878a9b67bdabf7f2a1642646a3bac94aba0a34a9e9ee1eee66e627afd331 - Sigstore transparency entry: 1428885868
- Sigstore integration time:
-
Permalink:
abhinav162/synapse@8bbe53990b14cdeab910abd5c012fa0e377dc0be -
Branch / Tag:
refs/tags/sdk-v0.1.0 - Owner: https://github.com/abhinav162
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-release.yml@8bbe53990b14cdeab910abd5c012fa0e377dc0be -
Trigger Event:
push
-
Statement type:
File details
Details for the file synapse_context_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: synapse_context_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caaee18913489ca84e338dc93c50aa9b00078f1a7887a710d4213996ba57d9b2
|
|
| MD5 |
6f51d27cebc1df92debe0db8570109f6
|
|
| BLAKE2b-256 |
0d742694706b5b4a6f8c61a5a0d6d18921b223c31c8136c7737c742d1c2d6799
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
synapse_context_sdk-0.1.0-py3-none-any.whl -
Subject digest:
caaee18913489ca84e338dc93c50aa9b00078f1a7887a710d4213996ba57d9b2 - Sigstore transparency entry: 1428885870
- Sigstore integration time:
-
Permalink:
abhinav162/synapse@8bbe53990b14cdeab910abd5c012fa0e377dc0be -
Branch / Tag:
refs/tags/sdk-v0.1.0 - Owner: https://github.com/abhinav162
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-release.yml@8bbe53990b14cdeab910abd5c012fa0e377dc0be -
Trigger Event:
push
-
Statement type: