Skip to main content

Asynchronous channels and utilities.

Project description

Asynchronous channels for communication and synchronization between asyncio coroutines.

from asyncio_channel import create_channel

# Create a new channel.
ch = create_channel()

# Put an item on the channel; block until the item is accepted.
await ch.put(x)

# Take an item from the channel; block until an item is available.
x = await ch.take()

# Do something each time an item is put on the channel.
async for x in ch:
	do_something(x)
	do_something_else(x)
# Iteration stops when the channel is closed and drained.

Also contains several utilities for piping items between channels, mixing multiple input channels, routing messages by topic, and more.

Project details


Download files

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

Source Distribution

asyncio_channel-0.10.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

asyncio_channel-0.10.1-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file asyncio_channel-0.10.1.tar.gz.

File metadata

  • Download URL: asyncio_channel-0.10.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for asyncio_channel-0.10.1.tar.gz
Algorithm Hash digest
SHA256 a97f177ba46c76e35fa2ef757c5a74f7dcdfeaa9a7b561d10eabbb85874449f1
MD5 b51e242a17f1bff3d99598389327c06d
BLAKE2b-256 a93bbd204c0d7d94c5a41cd3f4406e5d98224fa39b5e8a87f77823448b7e224e

See more details on using hashes here.

Provenance

The following attestation bundles were made for asyncio_channel-0.10.1.tar.gz:

Publisher: release.yml on ebb29c/asyncio-channel

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

File details

Details for the file asyncio_channel-0.10.1-py3-none-any.whl.

File metadata

File hashes

Hashes for asyncio_channel-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ee1b6da4a7a86359f3c2cab5e3177562e50071a6c49a3f81497810d32d20370
MD5 dcfdca4c46f5d51c36c1b02ad11e5ed3
BLAKE2b-256 14fa62a00010f58cee8c972c51bd67653d00c87280c1959135971b8240022e01

See more details on using hashes here.

Provenance

The following attestation bundles were made for asyncio_channel-0.10.1-py3-none-any.whl:

Publisher: release.yml on ebb29c/asyncio-channel

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