Skip to main content

metronome-loop

Library for easy timing without time.sleep()

Example use

import metronome_loop


def five_sec_prin():
    print("five_sec")


one_sec = metronome_loop.metronome(1000, lambda: print("one_sec"))
five_sec = metronome_loop.metronome(5000, five_sec_prin)
ten_sec = metronome_loop.metronome(10000)

while True:
    one_sec.loop()

    five_sec.loop()

    if ten_sec.loop():
        print("ten_sec")

Release files for metronome-loop 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 metronome-loop 0.1.0
File Size Uploaded
metronome_loop-0.1.0.tar.gz 2.0 kB Details

Built distribution (wheel)

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

Total release size: 4.9 kB

Release files / metronome_loop-0.1.0.tar.gz

Download URL metronome_loop-0.1.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e2814ea1dbea7112a9d4d35d2d3aa23f4b8382d0f74ba4f629b2f3e8051ba151
BLAKE2b-256 checksum
How to use checksums
3bf576b48dfd69adf52543066a7fd868f6b82438d633c0d4a4b738d36bcc1c29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

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

Download URL metronome_loop-0.1.0-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f71c6fe511eb0c1ff9814e137f3d1776439cd6ae172ceb49544a344c8f6f8d04
BLAKE2b-256 checksum
How to use checksums
0bca130c11b155953dde3d2410edf265719b8698fe73226883ca3b151bb780bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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