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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0077b51c8d3eec5745a0ddb2f798870cc482d07da92172dcece37807c634829
|
|
| MD5 |
eaa64bec72531d1d5d026bef6f436020
|
|
| BLAKE2b-256 |
ebf357ed20c063e3c7f97315a74ec512588c7e4c523c3d46cde86e8e1da45fa9
|
Provenance
The following attestation bundles were made for chanio-0.1.0.tar.gz:
Publisher:
release.yml on andefined/chanio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chanio-0.1.0.tar.gz -
Subject digest:
a0077b51c8d3eec5745a0ddb2f798870cc482d07da92172dcece37807c634829 - Sigstore transparency entry: 1854316845
- Sigstore integration time:
-
Permalink:
andefined/chanio@a7913791bccb0dde3dc1c687a3ece9e8ea69dcce -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/andefined
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a7913791bccb0dde3dc1c687a3ece9e8ea69dcce -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30be3592749001dcd8b3d91b663334a6ff1861d23ed5726fa4c0b60d5ce1b221
|
|
| MD5 |
b0f88c359119e9f2253e8436885fc106
|
|
| BLAKE2b-256 |
bf89e8bc2773f58bb4d9e39a5b2aeadd7ae041af55e63468de31e7655d976a2c
|
Provenance
The following attestation bundles were made for chanio-0.1.0-py3-none-any.whl:
Publisher:
release.yml on andefined/chanio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chanio-0.1.0-py3-none-any.whl -
Subject digest:
30be3592749001dcd8b3d91b663334a6ff1861d23ed5726fa4c0b60d5ce1b221 - Sigstore transparency entry: 1854316864
- Sigstore integration time:
-
Permalink:
andefined/chanio@a7913791bccb0dde3dc1c687a3ece9e8ea69dcce -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/andefined
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a7913791bccb0dde3dc1c687a3ece9e8ea69dcce -
Trigger Event:
release
-
Statement type: