Skip to main content

Asyncio Python client for spraybus

Project description

spraybus Python client

The Python client exposes an asyncio API over the native C++ client. The native client is created and used on a single background thread. Async methods enqueue commands to that thread, and received fanout messages are delivered back to the event loop.

Install the package from PyPI:

pip install spraybus
import asyncio
import spraybus


async def main():
    async with spraybus.AsyncClient("localhost", 6767) as client:
        await client.publish("test_topic", "hello from python")
        await client.subscribe("test_topic")

        async for message in client.messages():
            print(message.topic, message.text())


asyncio.run(main())

Build

From the repository root:

conan build . --build=missing -s compiler.cppstd=23 -of build/python
PYTHONPATH=python/src:build/python/build/Release/python python -c "import spraybus"

The package also includes a pyproject.toml for wheel builds with scikit-build-core. Wheel builds still need ENet and pybind11 to be discoverable by CMake.

The release workflow publishes spraybus wheels for CPython 3.10 through 3.14 on Linux x86_64, macOS arm64, and macOS x86_64.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

spraybus-0.0.1a5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (129.3 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

spraybus-0.0.1a5-cp314-cp314-macosx_11_0_arm64.whl (105.7 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

spraybus-0.0.1a5-cp314-cp314-macosx_10_15_x86_64.whl (112.9 kB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

spraybus-0.0.1a5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (129.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

spraybus-0.0.1a5-cp313-cp313-macosx_11_0_arm64.whl (105.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

spraybus-0.0.1a5-cp313-cp313-macosx_10_15_x86_64.whl (112.6 kB view details)

Uploaded CPython 3.13macOS 10.15+ x86-64

spraybus-0.0.1a5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (129.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

spraybus-0.0.1a5-cp312-cp312-macosx_11_0_arm64.whl (105.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

spraybus-0.0.1a5-cp312-cp312-macosx_10_15_x86_64.whl (112.5 kB view details)

Uploaded CPython 3.12macOS 10.15+ x86-64

spraybus-0.0.1a5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (127.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

spraybus-0.0.1a5-cp311-cp311-macosx_11_0_arm64.whl (105.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

spraybus-0.0.1a5-cp311-cp311-macosx_10_15_x86_64.whl (112.0 kB view details)

Uploaded CPython 3.11macOS 10.15+ x86-64

spraybus-0.0.1a5-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (126.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

spraybus-0.0.1a5-cp310-cp310-macosx_11_0_arm64.whl (104.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

spraybus-0.0.1a5-cp310-cp310-macosx_10_15_x86_64.whl (110.7 kB view details)

Uploaded CPython 3.10macOS 10.15+ x86-64

File details

Details for the file spraybus-0.0.1a5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 57e4143b47146a5b0413bcdad5e6fe061f1c68f0b4929f34905f31d2a971640c
MD5 f4e07fa0123adad8d2ba9eafcaac52b6
BLAKE2b-256 583c22258c565b36ba9cd5a27cf621d39278f694311a801742b96e1d52631dbb

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on humz2k/spraybus

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

File details

Details for the file spraybus-0.0.1a5-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1e3c8e69a8489d49d00d0437ba25d6e6b12551f345d069323b288351454c28b
MD5 1dc152205348fb8916eb0538aff93460
BLAKE2b-256 4308c889d6f224d7d508635e6a620a0aae7c6dc47ec2a7459a4d5123ba3abcb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: release.yml on humz2k/spraybus

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

File details

Details for the file spraybus-0.0.1a5-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 4f811ad2d8f83d6f11fef21af4633be2e5cf63799935118a102d6fdd9813f5a1
MD5 0263528ad6947be63e33e32bca9f26c7
BLAKE2b-256 7c4a160ebc2f69ff6712e7d52bad5ee3bfde24b72c714c91b535a5f0c9b2c4a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp314-cp314-macosx_10_15_x86_64.whl:

Publisher: release.yml on humz2k/spraybus

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

File details

Details for the file spraybus-0.0.1a5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c95e742e37456a30ba7aebdd6621f58fb20870d612375eda7e8d5cf9471767ba
MD5 e163128421c30f80319870fc2be76cd9
BLAKE2b-256 ce10a537b3eedc1c704b5860a937ad35017b6e97eac6b54b40260a53288dd16e

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on humz2k/spraybus

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

File details

Details for the file spraybus-0.0.1a5-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28c5747acbd42ff25b5aa7508d36d54607a4dbeb93df794ed04f7ac955905d6f
MD5 256404e5be7fab0cf731474c32a3b37d
BLAKE2b-256 e531718e05f6357842d50edd8b4003ec261c828664f87287e16808057ad8f6f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: release.yml on humz2k/spraybus

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

File details

Details for the file spraybus-0.0.1a5-cp313-cp313-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp313-cp313-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 67403d0f1b0a6d0d971bc29d14555020d933a499ea2172d7d14cacd0455f4278
MD5 24e05a4b354f02e252deb328a4a8ab96
BLAKE2b-256 a374e9c6a22670d85aeaf74e9a3d6aea37fdf5f82ce7406a007bca30b36f8a5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp313-cp313-macosx_10_15_x86_64.whl:

Publisher: release.yml on humz2k/spraybus

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

File details

Details for the file spraybus-0.0.1a5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bd7da14ace5c71c1e9639287484b11cb5eb5b86217243218f12e5a56df0d8c91
MD5 3fdc2a4248b0bce051f3c989033bab67
BLAKE2b-256 a9c973b76374c463451216fdb7db08532422143abcebc488aae6c4f9c8b51ecb

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on humz2k/spraybus

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

File details

Details for the file spraybus-0.0.1a5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 44cc2e3654d317ac855e9c29c0d092b17fbd806f7b2960eda481690128119beb
MD5 f2c57180c351d3e75b137e0ef2ca4a1b
BLAKE2b-256 77bc7af1a5c7ce3f2ff9179f0e6ca14dbc937a79775f90d721834d28e7ebd34f

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release.yml on humz2k/spraybus

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

File details

Details for the file spraybus-0.0.1a5-cp312-cp312-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp312-cp312-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 0e44374cda2af490cdbd68fa408f3f6f7b8a95c52ea7bb705e2aec43b8491ae9
MD5 a34b4722694412a61444fdd31ed03391
BLAKE2b-256 63f47f4764e3ca7eabacf3e58fb0ef0510eaeac6723292d0ae20589249cd84e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp312-cp312-macosx_10_15_x86_64.whl:

Publisher: release.yml on humz2k/spraybus

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

File details

Details for the file spraybus-0.0.1a5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f5f09827a0aa2910105156b7ef53f46a3657ffa89e52b52f06f57663901ff1eb
MD5 a373f36bf1ba663830f9d651e49c6492
BLAKE2b-256 3d600778249496898b0ca30624dc1cd67b452f8d9fbdc8c7a5264ba40aab8c24

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on humz2k/spraybus

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

File details

Details for the file spraybus-0.0.1a5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e910cf2c2e2a0471053ddc5ef5ceba7597a43ec387ef649672d35d8076bbb0ab
MD5 d218d7c31be7fa87019bf798ecc05fb8
BLAKE2b-256 8d0540f7da31328af51e5ff3dfd0b7c16ce2021f1c7e4eb65578f96fca555630

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: release.yml on humz2k/spraybus

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

File details

Details for the file spraybus-0.0.1a5-cp311-cp311-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 bed82bac88b58b2f44b6e0187674bd12033d0f6973881e019721d7a7469c3e08
MD5 975ca7826abe5f955c55ef8898618522
BLAKE2b-256 efad34df5abb2a8f2013888d63f0f0689b81c43164e17628e8531fac0f9b53aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp311-cp311-macosx_10_15_x86_64.whl:

Publisher: release.yml on humz2k/spraybus

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

File details

Details for the file spraybus-0.0.1a5-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 789e6cd1f2d4d9174214ffca46f120a996ade69720b85f148414d5a296bf95c5
MD5 19eb740beaa4f0dbb748849b02e05648
BLAKE2b-256 b61e83be066fa12fd9e5d6c0fb7b04b3d83a32253966b0b596f5d8c333c9d06b

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on humz2k/spraybus

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

File details

Details for the file spraybus-0.0.1a5-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f4d8e9f1bf249cd5cac2caf53e3cc4a890cc8881bc0ef7c1fe0e668f357c126
MD5 4f4ccbb9109a5545d577528872c824c8
BLAKE2b-256 ee60b37fc72dcb37ce6d1e2393209dfda571ce29252c417e430162c096bdb8cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: release.yml on humz2k/spraybus

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

File details

Details for the file spraybus-0.0.1a5-cp310-cp310-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1a5-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 410e13407540acb37bedfa9f044e51cea38a0bd829bd342e46f93c047aa3ebb3
MD5 d876973ace1662b5de0f42c638601f4d
BLAKE2b-256 34686d49a229f784aece9e38026386a1a8955c4eadfade3a78855df28f8e75d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.1a5-cp310-cp310-macosx_10_15_x86_64.whl:

Publisher: release.yml on humz2k/spraybus

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