Skip to main content

JSON API Forge Python SDK v0.5.0

This python-library branch is the independently packaged, pure-Python client SDK. It intentionally contains no Forge server runtime, Qt Editor, example projects, deployment files or compiled binaries.

Install

From the branch:

python -m pip install "json-api-forge-client @ git+https://github.com/Cavanshirpro/JSON-API-Forge.git@python-library"

For a repeatable deployment, pin a reviewed commit SHA. The Python SDK build Action produces a universal py3-none-any wheel, source distribution, source ZIP and SHA256SUMS; it does not publish to PyPI automatically.

Python 3.11–3.14 is supported. The base package depends only on httpx.

Application API client

from json_api_forge import ForgeClient

with ForgeClient("https://api.example.com", api_key="secret-from-your-store") as forge:
    notes = forge.list_items("my-service", "notes", params={"limit": 25})
    created = forge.create_item(
        "my-service",
        "notes",
        {"name": "ship v0.5.0"},
        idempotency_key="command-0192",
    )

AsyncForgeClient provides the equivalent asyncio API. Bounded retries are opt-in; a write is never retried or failed over without an idempotency key.

Editor control-plane client

from json_api_forge import EditorControlPlaneClient

with EditorControlPlaneClient("https://forge-admin.example.com") as control:
    profile = control.login("worker.name", "password-from-a-secret-prompt")
    projects = control.projects()
    rows = control.database_rows("Billing", "primary", "invoices", limit=50)

The control-plane clients cover founder setup, invitation enrollment, profiles, roles, project/document access, validation, read-only database browsing, project areas, messages, notes, attachments, calls and audit records. Bearer sessions are held in a zeroable memory buffer and removed from returned authentication payloads.

Security defaults include HTTPS-only remote URLs, no ambient proxy inheritance, no redirects or retained cookies, strict same-origin paths, exact token formats, bounded response bodies, non-symlink attachment snapshots and atomic downloads. WebRTC call tickets are placed in a URL fragment for the local call client, never in an HTTP query.

Cluster and optional integrations

ForgeCluster and AsyncForgeCluster provide deterministic routing, circuit breakers, bounded bulk work and idempotency-gated failover across multiple Forge endpoints.

YoungLion/DDM adapters remain optional:

python -m pip install "json-api-forge-client[younglion]"
# equivalent intent alias
python -m pip install "json-api-forge-client[ddm]"

Develop and verify

python -m venv .venv
source .venv/bin/activate
python -m pip install -e ".[dev]"
ruff format --check json_api_forge tests contract-tests scripts
ruff check json_api_forge tests contract-tests scripts
pytest -q tests
python -m build
python -m twine check dist/*

CI tests Linux x64/ARM64, Windows x64/ARM64 and macOS Intel/Apple Silicon, plus clean installs on Debian, Arch, Fedora, Rocky Linux 9/cPanel-family, openSUSE and Alpine/musl. A separate contract job checks out main and exercises this SDK against the real v0.5.0 control plane without copying server code into this branch.

See PYTHON_LIBRARY.md for the complete API and release contract.

License

JSON API Forge is source-available, not OSI open source. Review LICENSE and LICENSE-FAQ.md. Official distribution authority remains with Cavanşir Qurbanzadə (@Cavanshirpro) or a lawful successor/assignee.

Metadata

Release files for json-api-forge-client 0.5.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 json-api-forge-client 0.5.0
File Size Uploaded
json_api_forge_client-0.5.0.tar.gz 32.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for json-api-forge-client 0.5.0
File Interpreter ABI Platform
json_api_forge_client-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 61.2 kB

Release files / json_api_forge_client-0.5.0.tar.gz

Download URL json_api_forge_client-0.5.0.tar.gz
Size 32.8 kB
Tags Source
SHA-256 checksum
How to use checksums
56415b117aadf20d08a7a2ebb4e6ce2c571aeab2c8b5bfdb76a24aeb9a73bb09
BLAKE2b-256 checksum
How to use checksums
d9b8a853c2154cd1c8d67a03d12e9912da9480f17d65583cc347e6245786e2fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / json_api_forge_client-0.5.0-py3-none-any.whl

Download URL json_api_forge_client-0.5.0-py3-none-any.whl
Size 28.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d94a6b72a874cf172b52d726f9362a165c6ed644fe7edfc0358a54e22187dc2b
BLAKE2b-256 checksum
How to use checksums
e7b0819fce94296d83d345942af4a8a03f0011a5a9cc25f1552cb97986213c83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

0.5.1

2 release files

This release

0.5.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