Skip to main content

ChronoTrigger

A Python library to facilitate working with intervals.

Installation:

To install ChronoTrigger, simply use pip:

pip install chronoTrigger

Usage:

Import the necessary functions from the library to start using them in your code.

from chronoTrigger import set_interval, clear_interval, set_timeout, clear_timeout

def say_hello(name):
    print(f"Hello, {name}!")

# This will call the say_hello function every 1 second with "Alex" as the parameter.
interval = set_interval(say_hello, 1, "Alex")
# This will clear the interval after 5 seconds.
set_timeout(clear_interval, 5, interval)

Output:

Typing SVG


ChronoTrigger

Python библиотека для облегчения работы с интервалами.

Установка:

Для установки ChronoTrigger просто используйте pip:

pip install chronoTrigger

Использование:

Импортируйте необходимые функции из библиотеки, чтобы начать их использовать в вашем коде.

from chronoTrigger import set_interval, clear_interval, set_timeout, clear_timeout

def say_hello(name):
    print(f"Привет, {name}!")

# Это будет вызывать функцию say_hello каждую 1 секунду с параметром "Alex".
interval = set_interval(say_hello, 1, "Alex")
# Это остановит интервал через 5 секунд.
set_timeout(clear_interval, 5, interval)

Вывод:

Typing SVG

Release files for chronoTrigger 0.1.1

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

Source distribution (sdist)

Source distribution for chronoTrigger 0.1.1
File Size Uploaded
chronoTrigger-0.1.1.tar.gz 2.7 kB Details

Release files / chronoTrigger-0.1.1.tar.gz

Download URL chronoTrigger-0.1.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f5ba7070251626a2a191baaf0a9dce6875b4064beef2fcaf32f463e751cdb9aa
BLAKE2b-256 checksum
How to use checksums
0da3b7c93654d0a9f2d0e71fdc44189fd63c90194bc479576ed9ce01f9ad9dad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1

1 release 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