Library for working with intervals
Project description
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:
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)
Вывод:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chronoTrigger-0.1.1.tar.gz
(2.7 kB
view details)
File details
Details for the file chronoTrigger-0.1.1.tar.gz.
File metadata
- Download URL: chronoTrigger-0.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5ba7070251626a2a191baaf0a9dce6875b4064beef2fcaf32f463e751cdb9aa
|
|
| MD5 |
4ab83f1da4018d5b74e2a4631a77f957
|
|
| BLAKE2b-256 |
0da3b7c93654d0a9f2d0e71fdc44189fd63c90194bc479576ed9ce01f9ad9dad
|