Skip to main content

Asyncio util library

periodic_call

Allows periodically execute an awaitable incorruptible with event.

import signal
import asyncio
from asinc import periodic_call


async def run():
    stop_event = asyncio.Event()
    signal.signal(signal.SIGINT, lambda: stop_event.set())
    
    await periodic_call(lambda: asyncio.sleep(1), stop_event, 10)

Metadata

Release files for asinc 0.1.0

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

Source distribution (sdist)

Source distribution for asinc 0.1.0
File Size Uploaded Provenance Actions
asinc-0.1.0.tar.gz 1.0 kB Without provenance Details for asinc-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for asinc 0.1.0
File Interpreter ABI Platform Actions
asinc-0.1.0-py3-none-any.whl Python 3 none any Details for asinc-0.1.0-py3-none-any.whl

Total release size: 2.4 kB

Release files / asinc-0.1.0.tar.gz

Download URL asinc-0.1.0.tar.gz
Size 1.0 kB
Tags Source
SHA-256 checksum
How to use checksums
20f71dc473216bbc44c90e6dfb7513b1131a3ace8d7c4357947175851024343f
BLAKE2b-256 checksum
How to use checksums
99b9c948afd8fb068243fe019fdaf76b6c4b03e9365186d56b8ae776b71d166b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.13 Darwin/23.2.0

Release files / asinc-0.1.0-py3-none-any.whl

Download URL asinc-0.1.0-py3-none-any.whl
Size 1.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
045bc581f9bc9eee9c4eeb61c33f49c3eeb0fbf6843f88291fe2d2ca2a79ec14
BLAKE2b-256 checksum
How to use checksums
1fd958e11f3841d91bd2e3198d4e8578f0fbf801a5cde23874f7259a7ee3b646
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.13 Darwin/23.2.0

Security for asinc 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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