Skip to main content

Select and CSP combinators for AnyIO

Project description

chanio

Select and CSP combinators for AnyIO.

chanio adds the select statement and go-style fan-in/fan-out combinators (merge, tee, broadcast, worker_pool, ...) on top of AnyIO memory object streams, so it runs on both asyncio and Trio.

import anyio
from chanio import Channel, select

async def main() -> None:
    ch = Channel[int](capacity=1)
    await ch.send(42)
    value, _ = await select(ch)
    print(value)

anyio.run(main)

Status

Early alpha. API is not yet stable.

Development

uv sync
uv run pytest
uv run ruff check .
uv run mypy src

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

chanio-0.1.0.tar.gz (36.9 kB view details)

Uploaded Source

Built Distribution

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

chanio-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file chanio-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for chanio-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a0077b51c8d3eec5745a0ddb2f798870cc482d07da92172dcece37807c634829
MD5 eaa64bec72531d1d5d026bef6f436020
BLAKE2b-256 ebf357ed20c063e3c7f97315a74ec512588c7e4c523c3d46cde86e8e1da45fa9

See more details on using hashes here.

Provenance

The following attestation bundles were made for chanio-0.1.0.tar.gz:

Publisher: release.yml on andefined/chanio

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

File details

Details for the file chanio-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: chanio-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chanio-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30be3592749001dcd8b3d91b663334a6ff1861d23ed5726fa4c0b60d5ce1b221
MD5 b0f88c359119e9f2253e8436885fc106
BLAKE2b-256 bf89e8bc2773f58bb4d9e39a5b2aeadd7ae041af55e63468de31e7655d976a2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for chanio-0.1.0-py3-none-any.whl:

Publisher: release.yml on andefined/chanio

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