Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

Pre-release

This release is a pre-release and may not be stable for production use.

synapsedx SDK for Python

Apache-2.0. See root LICENSE. Part of SynapseDX Tier-1 PaaS.

Requires Python 3.9+. Single runtime dependency: requests>=2.28.

Install

pip install synapsedx-sdk

Quick start

from synapsedx_sdk import SynapseDXClient

c = SynapseDXClient("http://localhost:8080")
login = c.iam.login("demo@acme.local")
c.set_token(login["accessToken"])

c.iam.create_org("acme-2", "ACME 2")
c.iam.authorize(login["user"]["id"], "workflow:Execute", "*")
c.workflow.create_workflow_from_template("webhook-to-log", "demo")

Services

The SDK is split per service. Use the namespace that matches the service:

Namespace Service Highlights
c.iam Synapse IAM auth/OIDC, orgs, accounts, users, roles, policies, API keys, credentials, service accounts
c.workflow Workflow templates, workflow CRUD + activate/deactivate, executions, test_run, trigger_webhook
c.lds LDS datasources, attributes, records ingestion, NGSI-LD entities, licenses
c.base SynapseBase collections, documents, queries, batch, increment, change feed, typed object<->data mapping
c.faststore Synapse Faststore KV with TTL/NX/XX, incr, hashes, lists, sets, sorted sets, scans, batches, distributed locks
c.queue SynapseQueue queues, publish (delay/dedupe), consume leases, ack/nack/heartbeat, dead letters, replay

SynapseBase with typed objects

from dataclasses import dataclass


@dataclass
class Park:
    name: str
    capacity: int


parks = c.base.collection(
    "parks",
    model=Park,
    mapping={"name": "profile.name", "capacity": "profile.capacity"},
)
parks.create(Park("Central", 120), id="park-1")
page = parks.query(
    {"capacity": {"gte": 100}}, order_by=[{"field": "name", "direction": "asc"}]
)
for park in page:  # page.items are Park instances
    print(park.name)

Writes accept raw data or logical object; reads accept as_view="object". Queries return a QueryResult (items, total, limit, offset, next_cursor). increment is atomic and changes(since) polls the change feed.

Faststore + Queue

c.faststore.set("cache:park:1", {"name": "Central"}, ttl_seconds=300)
c.faststore.list_push("jobs", [{"id": 1}])
lock = c.faststore.lock_acquire("report", ttl_seconds=60)
c.faststore.lock_release("report", lock["token"])

c.queue.create_queue("emails", max_attempts=5, visibility_timeout_seconds=30)
c.queue.publish("emails", {"to": "a@b.c"}, dedupe_key="welcome:a@b.c")
batch = c.queue.consume("emails", max_messages=10, consumer="worker-1")
for msg in batch["messages"]:
    try:
        handle(msg["payload"])
        c.queue.ack("emails", msg["receipt"])
    except Exception as exc:
        c.queue.nack("emails", msg["receipt"], delay_seconds=30, error=str(exc))

Auth and tenants

SynapseDXClient(base_url, token=..., api_key=..., tenant=...), or set_token(jwt) / set_api_key(key) after login. timeout configurable (default 15s). tenant is sent as x-synapsedx-tenant and is only required by platform callers of the tenant-scoped services (faststore/queue).

Deprecated flat API

The old flat methods (c.login(...), c.list_templates(), c.list_lds_datasources(...), ...) still work but emit a DeprecationWarning that points at the namespaced replacement (e.g. client.workflow.list_templates()). Migrate call sites and silence the warnings. c.call(method, path, body) remains the generic escape hatch.

Tests

python -m pytest synapsedx_sdk -q

Full documentation

See docs/sdk-python.md for the complete API reference — constructor, auth, all methods with signatures, parameters, return types, and examples.

Metadata

Release files for synapsedx-sdk 0.5.2.dev32

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for synapsedx-sdk 0.5.2.dev32
File Size Uploaded Provenance
synapsedx_sdk-0.5.2.dev32.tar.gz 30.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for synapsedx-sdk 0.5.2.dev32
File Interpreter ABI Platform
synapsedx_sdk-0.5.2.dev32-py3-none-any.whl Python 3 none any Details

Total release size: 66.4 kB

Release files / synapsedx_sdk-0.5.2.dev32.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL synapsedx_sdk-0.5.2.dev32.tar.gz
Size 30.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7eea4e9a86b41a242fabe2bc1e7bdc9a99bbb6d0fcb34b9faa0992d8e76ad1b9
BLAKE2b-256 checksum
How to use checksums
8b13117fc17839111634134829a1abf1dfb762afeac1d9e651110067d1b746ba
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 Oct 21, 2026.

Transparency log

Release files / synapsedx_sdk-0.5.2.dev32-py3-none-any.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL synapsedx_sdk-0.5.2.dev32-py3-none-any.whl
Size 35.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee6efc6cb9a050d36f2f81602d5ed700b08f8e526a304e7c678050c7ee23c65c
BLAKE2b-256 checksum
How to use checksums
586d52d49650302bb56bd9c204c4addb54c5a8677d1400fb3a873a57f8f9d1b4
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 Oct 21, 2026.

Transparency log

Security for synapsedx-sdk 0.5.2.dev32

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.

Change of provenance

The configuration that created this release differs from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Configuration

  • Removed 0.5.2 release.yml
  • Added 0.5.2.dev32 cd.yml
Select from 2 files

Attestation for synapsedx_sdk-0.5.2.dev32.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 Oct 21, 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.

Release history Release notifications | RSS feed

This release
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