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.2-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.2-cp314-cp314-macosx_11_0_arm64.whl (105.7 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.14macOS 10.15+ x86-64

spraybus-0.0.2-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.2-cp313-cp313-macosx_11_0_arm64.whl (105.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.15+ x86-64

spraybus-0.0.2-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.2-cp312-cp312-macosx_11_0_arm64.whl (105.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.15+ x86-64

spraybus-0.0.2-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.2-cp311-cp311-macosx_11_0_arm64.whl (105.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.15+ x86-64

spraybus-0.0.2-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.2-cp310-cp310-macosx_11_0_arm64.whl (104.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

spraybus-0.0.2-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.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 64343b79dfb664aa46d8b6512a7c0101bde69e91aa74d29b358b12e3017c4308
MD5 82640299d0aba9dbb79d6a53565265e0
BLAKE2b-256 b21c7e428893a7ce91cee92f818e3d75e2179ff03a4425e19206f715dca05963

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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.2-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59e8c84d5202ec779bfdb59dd4e5f191b0de6c23aea6eb457f7cc322b052518a
MD5 cf8235c0ff6dd6fd64027fb5330849b8
BLAKE2b-256 ac8898ad7ea52409bb298b6d43763ba5f072a921b35e1aa8647cd5cca1026c49

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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.2-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 c2e4f2602a8091ea55fff6006f85007ba7455d7286796770e6e1b58ea7a9f9f4
MD5 7a3fabed9c8f3cf114d0b75d26da32d5
BLAKE2b-256 7271047ae267a2f5575eb88000228952b73bbaedb2334d94ec500a81b8133f00

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4e7bbc665dd948286fba1cd90a9f61a616ce50c1c9749fb9785407397f05e6ca
MD5 891fd50a6d7bff76a0690fb80e77b62a
BLAKE2b-256 425cd93ca0287c46320195ed4a5a6ff035404f50957859575a7ad05bd7280ab8

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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.2-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 735e8b8402028ebc6f598416d5df43bb1faa1afe9dc522d693d31817fa5eba38
MD5 782b09a87dae9e8f282b1320919b663b
BLAKE2b-256 bd2abb1e9db7200b60f972f10b617e037eb4300cdb749f6b846dbf40f2f159df

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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.2-cp313-cp313-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp313-cp313-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 83fcf93bc360fce2814d2a67848330f7da1532ca6246ccfb8145fa546a58d560
MD5 852c253a3725b9c5289139447ceeb9eb
BLAKE2b-256 624f76d7a40a37dee09e598a7fd082fa96fe8cf2f4cee6e3f798563adc733e06

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bb5fe55efbcafbb1d7aaf1e9d54728729446f08a86c2316892e56e17528e6ca6
MD5 96ba597b151a0edc1246b3d46dbf9910
BLAKE2b-256 e47348c5cef6807072989c278927586121d3f56ca223d063e764bba9b9f4aaa3

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4c704616eb4f93eef122ad60059d113033e4d966aea0a6dd813344d37cd53e5
MD5 c72092de60276aab75e54b7627884e50
BLAKE2b-256 f54803bbd1e24aa389180cb970581bc5aaca02d28bf53b922df0d5221fcc3345

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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.2-cp312-cp312-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp312-cp312-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 98b7711fe43ff237b594112756e164dd3d77900835412447a04923a09d459976
MD5 5e3e189f4a4f665a9eef8464d1392d6d
BLAKE2b-256 d2c14346717fba0a3d59102c4940f30386bc2582ee67b689dac835dc6f712f66

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 22693ad0f2a17e3b3e35c0264df5285915ef054afae0c009817c8ce56460de0b
MD5 90fbe2a2832083eb11a5a7363184f823
BLAKE2b-256 6887193f513e7ffe8736a779330e9f71a81937b78b28d0e205e97ecfd00e9064

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d10a8a2b1235fe5a8cf9892789201f6b031c58af58697dd7a685ac31ea3c166
MD5 667f24296869a7943fc79a716233b66a
BLAKE2b-256 3b4a961edebfbac548c844d6fb6fc384fe758ee86fc946e4b99dc2067e454474

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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.2-cp311-cp311-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 df467888a8d13754a0786160987d383d4c6a60fe78c21f5d878bda73d6fa2783
MD5 2b010c0dd9af577bda104c8642166645
BLAKE2b-256 7d5e1011d9c9730e6fce8a0f97ca9a97df4613ba6ad4dd864f186b1e7713a161

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 298f068ea344251619270a5584c8ce08da931f557fb61b7b073d5802116bb41c
MD5 e6b8924be295c0983892f903736b516e
BLAKE2b-256 770542fec82fd7a6b5b464fc8cb96b86fdd4db973c8e9a8480de8c4954bb528f

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 56dd2340d0b724b326318a8fd50bc78012c7f9631f58610ddee3fc626301a8ff
MD5 90eafab8fadf39311ed02997d3a781f1
BLAKE2b-256 6d7b1062787fb1785676f75ef821250d95a734a623d1d2ed876db4c9a6875487

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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.2-cp310-cp310-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.2-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 1312dd71cd2071547dc581819fb9833ce5519f79b032346c08beab9cf37cb959
MD5 c95da391e6b84ff4ad2588e8161d1dce
BLAKE2b-256 ecc54cd8b0f77eba1f956cc62fa992faf76f700e9adf76861e5b65e03d205513

See more details on using hashes here.

Provenance

The following attestation bundles were made for spraybus-0.0.2-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