Skip to main content

moat-lib-micro

% start main % start synopsis

Compatibility wrappers for async code that runs run on both CPython/anyio and MicroPython/asyncio.

% end synopsis

This module provides a unified interface for asynchronous programming that works across both CPython (using anyio) and MicroPython (using asyncio). It includes wrappers for logging and timing, common async primitives like Event, Lock, Queue, or TaskGroup, async context managers, and more.

Usage

The module provides consistent imports that work on both platforms:

from moat.lib.micro import Event, Lock, Queue, TaskGroup, sleep

# Use these primitives the same way on both CPython and MicroPython

async def worker(evt):
    await evt.wait()

async def example():
    event = Event()
    async with TaskGroup() as tg:
        tg.start_soon(worker, event)
        await sleep(1)
        event.set()

% end main

License

Licensed under the MIT License.

Metadata

Release files for moat-lib-micro 0.3.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moat-lib-micro 0.3.7
File Size Uploaded Provenance Actions
moat_lib_micro-0.3.7.tar.gz 9.2 kB Without provenance Details for moat_lib_micro-0.3.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for moat-lib-micro 0.3.7
File Interpreter ABI Platform Actions
moat_lib_micro-0.3.7-py3-none-any.whl Python 3 none any Details for moat_lib_micro-0.3.7-py3-none-any.whl

Total release size: 16.6 kB

Release files / moat_lib_micro-0.3.7.tar.gz

Download URL moat_lib_micro-0.3.7.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fb4239fa567c9e3f435a4d20d3fa45d4d6dd1158d321f57354573728fda165bf
BLAKE2b-256 checksum
How to use checksums
c86e2022aff7dab5b29a00354de97fe21d1230e4cf1cc3c19f6d90c474901713
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / moat_lib_micro-0.3.7-py3-none-any.whl

Download URL moat_lib_micro-0.3.7-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c20e1544385c6a20d57aa1c646dcff1345a4fc1d4da7a7a66b2875465bdbde8
BLAKE2b-256 checksum
How to use checksums
67293bac103c91744cb6e80adfd7b3db2ff0e6bec6e3429fb265e949e604e828
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for moat-lib-micro 0.3.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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