A multi-threaded async runtime
Project description
TonIO
TonIO is a multi-threaded async runtime for free-threaded Python, built in Rust on top of the mio crate, and inspired by tinyio and trio.
Warning: TonIO is currently a work in progress and very pre-alpha state. The APIs are subtle to breaking changes.
Note: TonIO is available on free-threaded Python and on Unix systems only.
In a nutshell
import tonio
def wait_and_add(x: int) -> int:
yield tonio.sleep(1)
return x + 1
def foo():
four, five = yield tonio.spawn(wait_and_add(3), wait_and_add(4))
return four, five
out = tonio.run(foo())
assert out == (4, 5)
License
TonIO is released under the BSD License.
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 Distributions
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 tonio-0.1.0a1.tar.gz.
File metadata
- Download URL: tonio-0.1.0a1.tar.gz
- Upload date:
- Size: 27.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c138a5232cd5e574b09c5ad010454a505d9bdfbfeba968480529f24340f57733
|
|
| MD5 |
44d3013cb945b5846916362f53626fa1
|
|
| BLAKE2b-256 |
a7c8ea996279c212264231e65792f940c91f7af262374473823993ed987dc56f
|
Provenance
The following attestation bundles were made for tonio-0.1.0a1.tar.gz:
Publisher:
release.yml on gi0baro/tonio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tonio-0.1.0a1.tar.gz -
Subject digest:
c138a5232cd5e574b09c5ad010454a505d9bdfbfeba968480529f24340f57733 - Sigstore transparency entry: 763394789
- Sigstore integration time:
-
Permalink:
gi0baro/tonio@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Branch / Tag:
refs/tags/v0.1.0-alpha1 - Owner: https://github.com/gi0baro
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Trigger Event:
push
-
Statement type:
File details
Details for the file tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_x86_64.whl.
File metadata
- Download URL: tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 507.3 kB
- Tags: CPython 3.14t, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
704edc5b2f5a4ebaecfb4808f8f2a5b39976515c2a6c382eccbb3d6f46f49c76
|
|
| MD5 |
035da73a1790905ef3a0b097473c077e
|
|
| BLAKE2b-256 |
cf21d0b22c889c4d4836a783a94304037cb7b90c72aaf08a6563d35be4b7cd7a
|
Provenance
The following attestation bundles were made for tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_x86_64.whl:
Publisher:
release.yml on gi0baro/tonio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_x86_64.whl -
Subject digest:
704edc5b2f5a4ebaecfb4808f8f2a5b39976515c2a6c382eccbb3d6f46f49c76 - Sigstore transparency entry: 763394797
- Sigstore integration time:
-
Permalink:
gi0baro/tonio@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Branch / Tag:
refs/tags/v0.1.0-alpha1 - Owner: https://github.com/gi0baro
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Trigger Event:
push
-
Statement type:
File details
Details for the file tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_armv7l.whl.
File metadata
- Download URL: tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_armv7l.whl
- Upload date:
- Size: 602.6 kB
- Tags: CPython 3.14t, musllinux: musl 1.1+ ARMv7l
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d2c94935675895b1da2f9b91f4cf5e3d1b8ffe8bdb78191c522a55bdd9a22bd
|
|
| MD5 |
845cbc37f03fecb8052493d986b091f4
|
|
| BLAKE2b-256 |
46ccfcfed6b3b6592770a547fcffd53c6cbc9ac07a1d5882645a88a98c621c29
|
Provenance
The following attestation bundles were made for tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_armv7l.whl:
Publisher:
release.yml on gi0baro/tonio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_armv7l.whl -
Subject digest:
8d2c94935675895b1da2f9b91f4cf5e3d1b8ffe8bdb78191c522a55bdd9a22bd - Sigstore transparency entry: 763394803
- Sigstore integration time:
-
Permalink:
gi0baro/tonio@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Branch / Tag:
refs/tags/v0.1.0-alpha1 - Owner: https://github.com/gi0baro
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Trigger Event:
push
-
Statement type:
File details
Details for the file tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_aarch64.whl.
File metadata
- Download URL: tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_aarch64.whl
- Upload date:
- Size: 499.1 kB
- Tags: CPython 3.14t, musllinux: musl 1.1+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19ceddea37cbc1e4a1290ccea88bfe74b9864b97b9d360e01f5f18fd713ed245
|
|
| MD5 |
e7d00d6660cb140de4b57274339cb083
|
|
| BLAKE2b-256 |
db846ef7e2d6167940aab2d5bea5004d844d0ab504bce21ddf54d3f4a020316a
|
Provenance
The following attestation bundles were made for tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_aarch64.whl:
Publisher:
release.yml on gi0baro/tonio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_aarch64.whl -
Subject digest:
19ceddea37cbc1e4a1290ccea88bfe74b9864b97b9d360e01f5f18fd713ed245 - Sigstore transparency entry: 763394793
- Sigstore integration time:
-
Permalink:
gi0baro/tonio@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Branch / Tag:
refs/tags/v0.1.0-alpha1 - Owner: https://github.com/gi0baro
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Trigger Event:
push
-
Statement type:
File details
Details for the file tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 386.8 kB
- Tags: CPython 3.14t, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61d44b66e6f44ed63599a1bbb224ff8f6e4b788745c13b31601869c79ec24ad2
|
|
| MD5 |
04c227a68ed292220de4378f7f323848
|
|
| BLAKE2b-256 |
556fcc5a0dfc6340d500559ee81f8970cb7c59cd439492455ef41ef33e8a2400
|
Provenance
The following attestation bundles were made for tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
release.yml on gi0baro/tonio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
61d44b66e6f44ed63599a1bbb224ff8f6e4b788745c13b31601869c79ec24ad2 - Sigstore transparency entry: 763394802
- Sigstore integration time:
-
Permalink:
gi0baro/tonio@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Branch / Tag:
refs/tags/v0.1.0-alpha1 - Owner: https://github.com/gi0baro
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Trigger Event:
push
-
Statement type:
File details
Details for the file tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.
File metadata
- Download URL: tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 333.9 kB
- Tags: CPython 3.14t, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb0208cf6348c863f02eaa025519e47da4caa442159692e07152d305aeb71124
|
|
| MD5 |
52f2db1134053a2096b254b3a7a9c1a1
|
|
| BLAKE2b-256 |
8e2e4a1dfd4e41b1b34fe330a06ae7aa5325b9773eec0e19d77bba89a54ec840
|
Provenance
The following attestation bundles were made for tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl:
Publisher:
release.yml on gi0baro/tonio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl -
Subject digest:
fb0208cf6348c863f02eaa025519e47da4caa442159692e07152d305aeb71124 - Sigstore transparency entry: 763394798
- Sigstore integration time:
-
Permalink:
gi0baro/tonio@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Branch / Tag:
refs/tags/v0.1.0-alpha1 - Owner: https://github.com/gi0baro
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Trigger Event:
push
-
Statement type:
File details
Details for the file tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 315.6 kB
- Tags: CPython 3.14t, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
659704c976c7ba32799668302cf07f3822a6aa6f31c5f04c20a29226fb9cae5e
|
|
| MD5 |
064e975a38cef49423c9c7602dc40710
|
|
| BLAKE2b-256 |
5918e696bd4e6d76890222d52243a2a22bc40ef503fadd43f23951bf6a604fb5
|
Provenance
The following attestation bundles were made for tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
release.yml on gi0baro/tonio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
659704c976c7ba32799668302cf07f3822a6aa6f31c5f04c20a29226fb9cae5e - Sigstore transparency entry: 763394796
- Sigstore integration time:
-
Permalink:
gi0baro/tonio@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Branch / Tag:
refs/tags/v0.1.0-alpha1 - Owner: https://github.com/gi0baro
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Trigger Event:
push
-
Statement type:
File details
Details for the file tonio-0.1.0a1-cp314-cp314t-manylinux_2_12_i686.manylinux2010_i686.whl.
File metadata
- Download URL: tonio-0.1.0a1-cp314-cp314t-manylinux_2_12_i686.manylinux2010_i686.whl
- Upload date:
- Size: 357.8 kB
- Tags: CPython 3.14t, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9439be6de05188eaf40a33f7c5d4f6dc1b9f09b47b54dde191feba63b5b18969
|
|
| MD5 |
457fd282ca11e281e1faf74bd06fdec4
|
|
| BLAKE2b-256 |
cab43157a79b461d0198d8045481ac4dd6e25486153504b88c9c748c798d9d9c
|
Provenance
The following attestation bundles were made for tonio-0.1.0a1-cp314-cp314t-manylinux_2_12_i686.manylinux2010_i686.whl:
Publisher:
release.yml on gi0baro/tonio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tonio-0.1.0a1-cp314-cp314t-manylinux_2_12_i686.manylinux2010_i686.whl -
Subject digest:
9439be6de05188eaf40a33f7c5d4f6dc1b9f09b47b54dde191feba63b5b18969 - Sigstore transparency entry: 763394800
- Sigstore integration time:
-
Permalink:
gi0baro/tonio@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Branch / Tag:
refs/tags/v0.1.0-alpha1 - Owner: https://github.com/gi0baro
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Trigger Event:
push
-
Statement type:
File details
Details for the file tonio-0.1.0a1-cp314-cp314t-macosx_11_0_arm64.whl.
File metadata
- Download URL: tonio-0.1.0a1-cp314-cp314t-macosx_11_0_arm64.whl
- Upload date:
- Size: 334.4 kB
- Tags: CPython 3.14t, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f17213890647d74ded38e366cc26c554ae7b0a9b5819e245539daa63fe857f3
|
|
| MD5 |
0a79d9d2c280f5cd6bdd2d5545a57ee1
|
|
| BLAKE2b-256 |
5444f6e323b9ee11413b43fa21d3cd2c8218e4dea4c7495de60444516e7ad06e
|
Provenance
The following attestation bundles were made for tonio-0.1.0a1-cp314-cp314t-macosx_11_0_arm64.whl:
Publisher:
release.yml on gi0baro/tonio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tonio-0.1.0a1-cp314-cp314t-macosx_11_0_arm64.whl -
Subject digest:
2f17213890647d74ded38e366cc26c554ae7b0a9b5819e245539daa63fe857f3 - Sigstore transparency entry: 763394801
- Sigstore integration time:
-
Permalink:
gi0baro/tonio@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Branch / Tag:
refs/tags/v0.1.0-alpha1 - Owner: https://github.com/gi0baro
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Trigger Event:
push
-
Statement type:
File details
Details for the file tonio-0.1.0a1-cp314-cp314t-macosx_10_12_x86_64.whl.
File metadata
- Download URL: tonio-0.1.0a1-cp314-cp314t-macosx_10_12_x86_64.whl
- Upload date:
- Size: 360.9 kB
- Tags: CPython 3.14t, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ebf568fa86eb43db05327920b01e0e7baa6af5a53710502be680f2cb9243aa1
|
|
| MD5 |
c67e899656a6ef21c641dbf2842d8121
|
|
| BLAKE2b-256 |
6f98507b768d8388a687b7cbac5e02b000965b96e6bd222b8edff1e6a55ecfdb
|
Provenance
The following attestation bundles were made for tonio-0.1.0a1-cp314-cp314t-macosx_10_12_x86_64.whl:
Publisher:
release.yml on gi0baro/tonio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tonio-0.1.0a1-cp314-cp314t-macosx_10_12_x86_64.whl -
Subject digest:
4ebf568fa86eb43db05327920b01e0e7baa6af5a53710502be680f2cb9243aa1 - Sigstore transparency entry: 763394791
- Sigstore integration time:
-
Permalink:
gi0baro/tonio@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Branch / Tag:
refs/tags/v0.1.0-alpha1 - Owner: https://github.com/gi0baro
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b89e5e38b1cc593e27a6a083e1b1b4aeb37a41fb -
Trigger Event:
push
-
Statement type: