Skip to main content

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

Runtime Dependencies (aka "Normal Dependencies")

asynkio depends on:

  • Diagnosticism.Python for duration string formatting;
  • the Python standard library (asyncio) for async timers;

Efferent (fan-out)

Libraries upon which asynkio depends:

  • diagnosticism (>= 0.16.0) — Duration string formatting via nanoseconds_to_string();
Development Dependencies
  • aiofiles — development and demonstration tooling;
  • black — code formatter;
  • diagnosticism — example scripts under examples/;
  • pyclasp — development and demonstration tooling;
  • pytest — unit-test runner;
  • ruff — linter;

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.

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.1.0.tar.gz (19.4 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.1.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for asynkio-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f7e2e0c1fc77cb58fb1e2f584f240f16fe0d6ab782c2a9d363397d49f58664fd
MD5 829a217cab0996b85d17c81303293111
BLAKE2b-256 685e95e22c5c116abac7c30f26d4c00677ab460e6179406eaef88c83a25f642a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asynkio-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.5 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be6f2ca1913f7f26af4cff12318d045b6dba8eb44650a5dfafbf6bf7e4f86574
MD5 c69da6622547bf0609aeb755081b078a
BLAKE2b-256 41a764e8b342671e7a9c0d3fe172e50a705e556f9c86b7e264e0eb5e1cb53b8c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

1 file

0.0.1

1 file

0.0.0.1

1 file

0.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page