Skip to main content

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


Download files

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

Source Distribution

tonio-0.1.0a1.tar.gz (27.5 kB view details)

Uploaded Source

Built Distributions

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

tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_x86_64.whl (507.3 kB view details)

Uploaded CPython 3.14tmusllinux: musl 1.1+ x86-64

tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_armv7l.whl (602.6 kB view details)

Uploaded CPython 3.14tmusllinux: musl 1.1+ ARMv7l

tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_aarch64.whl (499.1 kB view details)

Uploaded CPython 3.14tmusllinux: musl 1.1+ ARM64

tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (386.8 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ x86-64

tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (333.9 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ ARMv7l

tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (315.6 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ ARM64

tonio-0.1.0a1-cp314-cp314t-manylinux_2_12_i686.manylinux2010_i686.whl (357.8 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.12+ i686

tonio-0.1.0a1-cp314-cp314t-macosx_11_0_arm64.whl (334.4 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

tonio-0.1.0a1-cp314-cp314t-macosx_10_12_x86_64.whl (360.9 kB view details)

Uploaded CPython 3.14tmacOS 10.12+ x86-64

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

Hashes for tonio-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 c138a5232cd5e574b09c5ad010454a505d9bdfbfeba968480529f24340f57733
MD5 44d3013cb945b5846916362f53626fa1
BLAKE2b-256 a7c8ea996279c212264231e65792f940c91f7af262374473823993ed987dc56f

See more details on using hashes here.

Provenance

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

Publisher: release.yml on gi0baro/tonio

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

File details

Details for the file tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 704edc5b2f5a4ebaecfb4808f8f2a5b39976515c2a6c382eccbb3d6f46f49c76
MD5 035da73a1790905ef3a0b097473c077e
BLAKE2b-256 cf21d0b22c889c4d4836a783a94304037cb7b90c72aaf08a6563d35be4b7cd7a

See more details on using hashes here.

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

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

File details

Details for the file tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_armv7l.whl.

File metadata

File hashes

Hashes for tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_armv7l.whl
Algorithm Hash digest
SHA256 8d2c94935675895b1da2f9b91f4cf5e3d1b8ffe8bdb78191c522a55bdd9a22bd
MD5 845cbc37f03fecb8052493d986b091f4
BLAKE2b-256 46ccfcfed6b3b6592770a547fcffd53c6cbc9ac07a1d5882645a88a98c621c29

See more details on using hashes here.

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

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

File details

Details for the file tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for tonio-0.1.0a1-cp314-cp314t-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 19ceddea37cbc1e4a1290ccea88bfe74b9864b97b9d360e01f5f18fd713ed245
MD5 e7d00d6660cb140de4b57274339cb083
BLAKE2b-256 db846ef7e2d6167940aab2d5bea5004d844d0ab504bce21ddf54d3f4a020316a

See more details on using hashes here.

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

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

File details

Details for the file tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 61d44b66e6f44ed63599a1bbb224ff8f6e4b788745c13b31601869c79ec24ad2
MD5 04c227a68ed292220de4378f7f323848
BLAKE2b-256 556fcc5a0dfc6340d500559ee81f8970cb7c59cd439492455ef41ef33e8a2400

See more details on using hashes here.

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

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

File details

Details for the file tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 fb0208cf6348c863f02eaa025519e47da4caa442159692e07152d305aeb71124
MD5 52f2db1134053a2096b254b3a7a9c1a1
BLAKE2b-256 8e2e4a1dfd4e41b1b34fe330a06ae7aa5325b9773eec0e19d77bba89a54ec840

See more details on using hashes here.

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

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

File details

Details for the file tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tonio-0.1.0a1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 659704c976c7ba32799668302cf07f3822a6aa6f31c5f04c20a29226fb9cae5e
MD5 064e975a38cef49423c9c7602dc40710
BLAKE2b-256 5918e696bd4e6d76890222d52243a2a22bc40ef503fadd43f23951bf6a604fb5

See more details on using hashes here.

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

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

File details

Details for the file tonio-0.1.0a1-cp314-cp314t-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for tonio-0.1.0a1-cp314-cp314t-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 9439be6de05188eaf40a33f7c5d4f6dc1b9f09b47b54dde191feba63b5b18969
MD5 457fd282ca11e281e1faf74bd06fdec4
BLAKE2b-256 cab43157a79b461d0198d8045481ac4dd6e25486153504b88c9c748c798d9d9c

See more details on using hashes here.

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

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

File details

Details for the file tonio-0.1.0a1-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tonio-0.1.0a1-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f17213890647d74ded38e366cc26c554ae7b0a9b5819e245539daa63fe857f3
MD5 0a79d9d2c280f5cd6bdd2d5545a57ee1
BLAKE2b-256 5444f6e323b9ee11413b43fa21d3cd2c8218e4dea4c7495de60444516e7ad06e

See more details on using hashes here.

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

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

File details

Details for the file tonio-0.1.0a1-cp314-cp314t-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for tonio-0.1.0a1-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4ebf568fa86eb43db05327920b01e0e7baa6af5a53710502be680f2cb9243aa1
MD5 c67e899656a6ef21c641dbf2842d8121
BLAKE2b-256 6f98507b768d8388a687b7cbac5e02b000965b96e6bd222b8edff1e6a55ecfdb

See more details on using hashes here.

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

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