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.6

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.6
File Size Uploaded Provenance Actions
moat_lib_micro-0.3.6.tar.gz 9.2 kB Without provenance Details for moat_lib_micro-0.3.6.tar.gz

Built distribution (wheel)

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

Total release size: 16.6 kB

Release files / moat_lib_micro-0.3.6.tar.gz

Download URL moat_lib_micro-0.3.6.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8f8c5d9d9306e9ff07a7cde5d6496ca69b89d7c01fa1bf9ecab8fdfd9c6e94e6
BLAKE2b-256 checksum
How to use checksums
7e4cb353a378dc1c35f16b62f22b25824c34b09f36059ef9634f2501208aab5b
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.6-py3-none-any.whl

Download URL moat_lib_micro-0.3.6-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
674379ea3405f8b657e2315de0042e742c9b0dab1569aaf67a58b8b4a95d586e
BLAKE2b-256 checksum
How to use checksums
be740b753a20b16d30b954a26c2d53db4a3b49483fb631ca46fd4d136ac6b139
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.6

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