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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.14macOS 10.15+ x86-64

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

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

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.15+ x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.15+ x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.15+ x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

spraybus-0.0.1-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.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for spraybus-0.0.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f40217cba3776fb77f98fde6cb9adc2d89b61c2f636ec9c52461275e4a5711f9
MD5 8b9d6612ce09375639f01ba9af225191
BLAKE2b-256 99d6884e9fe8e7d6a57b9f64e83cad8a3a9b1ee47e37a0b0ebb8690b36226c66

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for spraybus-0.0.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e83c1f1a0836c387268578e0d3d8ac8cf4cd53848362d16353230fbef175d41
MD5 20854f35f0dc2bfabf892b5e92d1d6a0
BLAKE2b-256 287fe8e28ad7f4a11ce0f7a978a5bb5378728a9d75a9dae07474d65b8dd3171a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for spraybus-0.0.1-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 c9b52ad76aee115fb1ce24b08bc130b8f367287a327d322ba17948133f2c83ca
MD5 f43893fdb4f17734bc891f6d4ad3d52b
BLAKE2b-256 382c8e701dce1d633825e3de7f26b2f4c722ed1d6f8fd54e466957eb5a3c18cd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for spraybus-0.0.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 05e9aafb2b91849a253888b151efc0dd26fb354641423527cefc56c0bf9b46ca
MD5 6dfd84926f2e006c69e7d00fb779c4ab
BLAKE2b-256 79b0bdff086e829eb7c5cf480322d14000f96960d589f29f116e7bea5e6ea266

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for spraybus-0.0.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8fc6e6f078a2f056f49dc0cb9d1d3efb9fca546e15f5af76c5db843e6d057e3
MD5 1c9fd61683f1468e623009be0b0f72d5
BLAKE2b-256 e8060dfbe71adfb16cdd10763260838931ee977e9ffa1fea97af3eb75153de5d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for spraybus-0.0.1-cp313-cp313-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 131117ba76b06555dd1a68a94c72773271584cfb3774e589a6eab4e4f90f1b28
MD5 637a506a8351dd8c1b2142028b742370
BLAKE2b-256 2897f5984f248dadb5e8785198c1218013e34d21d520b6352a9b1150132cf514

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for spraybus-0.0.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6e852367270901e7e1507b5927b133345ad61b5e7fc5eca6a0af9477a157554f
MD5 5774095b7bc595afc6c81055fe831e9f
BLAKE2b-256 ddaf6fddd26809ea2490408b55dfe155949f726c2c81701550f672b679d3dc5e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for spraybus-0.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca60605846efdfdc2247a953914550e42563c7df49fcaa250e5d3fbef652b2cf
MD5 b4b2029dfdac586df71bbb1af2d0c7ff
BLAKE2b-256 fa6fe76c957ca7872e6066b04c6c2356b59e6b4d14f628782b11e894fcc72742

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for spraybus-0.0.1-cp312-cp312-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 967e8aded64cea4377a7664cdc9ad9873d165a09411ee5285f3e7437a9926a0f
MD5 564aeb4eeafae6c5446d4b0c97f5e70f
BLAKE2b-256 6daa6963736575aa36d30509c8ed6162202812ea88a2eabd3fa313209884cdb2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for spraybus-0.0.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4f31394269e41600ab6ceb0232caaea7a50ba4e35e1939b3fed289c122101bc9
MD5 0e1e5025c7cddf07f34926b2290f9047
BLAKE2b-256 5ec9462e0321a4284708d7ae1b84e0f5d3628c5b39d286f5bcf739cdb0a68780

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for spraybus-0.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 245c756c28102a23f27884c90dfcb8f14b4d9f355b08e308a1b0baf847a2e6eb
MD5 3e26b49e13419d5ec1343981f838d94d
BLAKE2b-256 3bd718e2cb4f377d6b5bc6e3581e9802a32757618f6593dcaa236b025c6a1631

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for spraybus-0.0.1-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 9e29b0a78a7900a832ba1a05a63abf2c4310dc6a052376483b9e52b75f87fdf8
MD5 03e51085e8168ac20ba45832d0ccf3f1
BLAKE2b-256 daf224dcab0e6e17ffd5d357f45ec8ed2603025130229bd8c9917c028ed35167

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for spraybus-0.0.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9bb910b1746544b1ea082d04fa7ee7a974329fae7601680cd668ff26cfe82512
MD5 e1c0d6050c7e8402c17a7dba9d4e094b
BLAKE2b-256 b3f2c3dc4899750784c58a2ab88b547627d9c238aeecaac3845a07ff4f22e31e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for spraybus-0.0.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8a8df8b06024def108299731010cf656a6630eae4c0911abbab15dddb1494da
MD5 1bf52443d4738a54c3618e18f2a86df1
BLAKE2b-256 5e206dd8c9fa35214ad4d36cb3feb0f0cc463ee3ff642478cb7164442fabd621

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for spraybus-0.0.1-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 51be1d22a9ef7d0439dfe73a019dabb1963e8b0b1cd86c4e67e385ff1671f985
MD5 20b555787939b1615a4e214de14439fa
BLAKE2b-256 d274c59f94530c1b16e9ed5c1b4bad9fdb5efbcc180940aaeba8244bb9bfd4bc

See more details on using hashes here.

Provenance

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