Skip to main content

nimbus-dev-sdk

The MIT-licensed, dependency-free authoring contract for Nimbus connectors and extensions — Python binding.

pip install nimbus-dev-sdk    # note: nimbus-dev-sdk, NOT nimbus-sdk
import nimbus_sdk  # the import name differs from the distribution name

PyPI has a flat namespace and nimbus-sdk belongs to an unrelated project, so the distribution is published as nimbus-dev-sdk.

What this is

The contract is defined once, language-neutrally, in docs/spec/. This package carries that specification data and binds it to Python. The TypeScript SDK is the reference implementation; both are held to the same conformance corpus.

The specification data is bundled into the distribution, so it is available without a network call or a checkout:

from nimbus_sdk import load_schema, negotiate_contract_version

schema = load_schema("nimbus-item.schema.json")
result = negotiate_contract_version(["1"], ["1"])  # NegotiationOk(version="1")

Status

Early. This release carries the contract-version constants, the negotiation algorithm, and the published JSON Schemas. It also carries the IPC surface — from nimbus_sdk.ipc import NdjsonLineReader, parse_hello, perform_handshake — deliberately a separate import root from nimbus_sdk, mirroring the . vs ./ipc split the TypeScript package publishes. It is not yet the full connector-authoring surface — see the roadmap.

perform_handshake is the one exchange this package performs end to end: write our hello, read the peer's, agree on a contract major or refuse. The stream is injected, never opened — the package does no I/O of its own — and a refusal comes back as a value, because nothing here owns a process to exit.

from nimbus_sdk.ipc import HandshakeOk, NdjsonLineReader, perform_handshake

# `io` is any object with `read() -> bytes | None` and `write(bytes) -> None`. Return
# None at end of stream: sys.stdin.buffer.read() gives b"" there, which would loop.
reader = NdjsonLineReader()  # supply your own if the session keeps reading this stream
result = perform_handshake(io, reader=reader)
if isinstance(result, HandshakeOk):
    result.version  # the agreed contract major, e.g. "1"
    result.pending  # frames the peer sent right after its hello — process these first

It is synchronous, where the TypeScript binding is async. Python's standard streams block and a startup handshake has nothing to overlap with, so async def would drag every connector into an event loop for nothing; an asyncio caller wraps it with await asyncio.to_thread(perform_handshake, io).

License

MIT — see LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nimbus_dev_sdk-0.3.0.tar.gz (70.7 kB view details)

Uploaded Source

Built Distribution

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

nimbus_dev_sdk-0.3.0-py3-none-any.whl (126.3 kB view details)

Uploaded Python 3

File details

Details for the file nimbus_dev_sdk-0.3.0.tar.gz.

File metadata

  • Download URL: nimbus_dev_sdk-0.3.0.tar.gz
  • Upload date:
  • Size: 70.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for nimbus_dev_sdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8e34b7f6ff21c3feaaa20b07733f7dbebc7534bb817ae1d7c86e6336ad2af574
MD5 9544d828ae9ea7be45c8181edb336205
BLAKE2b-256 678ac0a97cfa09b7751025dc7b749aeeb99662457b1d21f83e6b2e48112d3871

See more details on using hashes here.

Provenance

The following attestation bundles were made for nimbus_dev_sdk-0.3.0.tar.gz:

Publisher: release.yml on nimbus-agent/nimbus-sdk

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

File details

Details for the file nimbus_dev_sdk-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: nimbus_dev_sdk-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 126.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for nimbus_dev_sdk-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54660194ad134a4538c5fdb2afdbfe460e24cffd76bc6b683f393eedc51ffc3c
MD5 b8c355542247c72b2ccabfa0f444ddba
BLAKE2b-256 acd84b5998ba7af89f43de93a4eba13ec8793c025815c4e0bd4acbf284141d8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for nimbus_dev_sdk-0.3.0-py3-none-any.whl:

Publisher: release.yml on nimbus-agent/nimbus-sdk

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

Release history Release notifications | RSS feed

0.23.0

2 files

0.22.0

2 files

0.20.0

2 files

0.19.0

2 files

0.18.1

2 files

0.17.0

2 files

0.15.0

2 files

0.14.0

2 files

0.13.0

2 files

0.12.1

2 files

0.12.0

2 files

0.11.1

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.1

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 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