Skip to main content

Tokio-like functionality for Python

Reason this release was yanked:

Wrong version stamp

Project description

asynkio - README

Tokio-like functionality for Python

Language License PyPI GitHub release Python CI PyPI project

Table of contents

Introduction

asynkio - a portmanteau of asyncio and Tokio, pronounced "ay sink ee-oh" - is a small, simple Python library that provides some of the features of the Rust Tokio library's features, such as Duration, Instant, and Interval.

Installation & Usage

Install via pip or pip3, as in:

$ pip3 install asynkio

Use via import:

from asynkio import (
    Duration,
    Instant,
    Interval,
    MissedTickBehaviour,
)

or:

from asynkio.time import (
    Duration,
    Instant,
    Interval,
    MissedTickBehaviour,
)

MissedTickBehavior (US spelling) is also exported as an alias for MissedTickBehaviour.

Components

Symbol Description
Duration Elapsed time, in nanoseconds (Tokio-like)
Instant Point in time, as nanoseconds since the epoch
Interval Async periodic timer with missed-tick policy
MissedTickBehaviour Missed-tick policy (BURST, DELAY, SKIP)

Examples

Examples are provided in the examples/ directory. See EXAMPLES.md for a summary of each script.

Run a script with, for example:

$ uv sync
$ uv run python examples/interval_skip.py

Project Information

Where to get help

GitHub Page

Contribution guidelines

Defect reports, feature requests, and pull requests are welcome on https://github.com/synesissoftware/asynkio.

Dependencies

asynkio has no runtime dependencies beyond the Python standard library (asyncio).

Efferent (fan-out)

Libraries upon which asynkio depends:

None.

Development Dependencies
  • aiofiles — development and demonstration tooling;
  • black — code formatter;
  • diagnosticism — example scripts under examples/;
  • pyclasp — development and demonstration tooling;
  • pytest — unit-test runner;

Afferent (fan-in)

Projects that depend on asynkio:

None (currently).

Related projects

License

asynkio is released under the 3-clause BSD license. See LICENSE for details.

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

asynkio-0.0.5.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

asynkio-0.0.5-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file asynkio-0.0.5.tar.gz.

File metadata

  • Download URL: asynkio-0.0.5.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for asynkio-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a651ced9c31253bf8b00e74c5c0cf1f4a83aa383d9c03cf738727a06651844c7
MD5 b83d0957c47fd7b18840f3c54ef512f2
BLAKE2b-256 448ffa0f16ec547fe99979f34672e53a573ff2d0d010cbb60500da8c16b71841

See more details on using hashes here.

File details

Details for the file asynkio-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: asynkio-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for asynkio-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 153e28e03cdb391bf26037501599ef2f205dbe450b46a6f796dd9c9991eef356
MD5 a8b11d93c0dea26a804c59d971829e14
BLAKE2b-256 022f67e81b3a20b5c06505ae410d2184ac4a90a09c99cc5c01951cf7bc993843

See more details on using hashes here.

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