Python-Repeated-Timer is an open-source & highly performing timer using only standard-libraries.

Related tags

python-repeated-timer
Overview

Python Repeated Timer

repeated timer logo

Python PyPI

Python-Repeated-Timer is an open-source & highly performing timer using only standard-libraries.

Users may change the interval and duration of the event as they wish.

This code is GUI freezing issue won't be happening, and performance of the timer won't be affected by any event.

Features:

  • Python Repeated Timer is a open-source library based on Thread Timer, and this asynchronously triggers the event every N seconds.

reactor pattern

  • For this only uses python standard-library, no additional library is required.
  • Easy to implement by simply using functions such as start(), stop(). Also, this timer is stable on multiple calls.
  • No matter how heavy timer_tick() is, the timer's interval & duration won't be affected.
  • It is possible to insert the argument so you can customize the timer as you want.
  • You may change the interval & duration of the timer.
  • No freezing issue occurs with GUI libraries such as Tkinter.

Install (~ing)

To install the current release:

$ pip install python-repeated-timer

Usage:

If you want to use a repeated timer in a python code, see this tutorials

$ python
>>> from repeated_timer import Repeated_Timer
>>> def timer_tick(remaining_time: int, *args: tuple, **kwargs: dict):
>>>   # You can put your code in here
>>>   print('timer tick!')
>>>   print(remaining_time)  # You can use remaining_time
>>>
>>> repeated_timer = Repeated_Timer(interval=1, duration=30, function=timer_tick, args1='args1')
>>> repeated_timer.start()
>>> # repeated_timer.stop()

Usage for GUI(with TKinter)

tkinter_tutorial

If you want to use repeated timer with tkinter, see this tutorials

Performance metrics:

this repository is still under construction.

TODO / Known Issues:

  • this repository is still under construction.
Issues
Releases(0.0.1)
Owner
TACKHYUN JUNG
TACKHYUN JUNG
The easiest way to automate your data

Hello, world! ?? We've rebuilt data engineering for the data science era. Prefect is a new workflow management system, designed for modern infrastruct

Prefect 7.6k Oct 23, 2021
A simple scheduler tool that provides desktop notifications about classes and opens their meet links in the browser automatically at the start of the class.

This application provides desktop notifications about classes and opens their meet links in browser automatically at the start of the class.

Anshit 13 Mar 23, 2021
A powerful workflow engine implemented in pure Python

Spiff Workflow Summary Spiff Workflow is a workflow engine implemented in pure Python. It is based on the excellent work of the Workflow Patterns init

Samuel 1k Oct 20, 2021
Another Scheduler is a Kubernetes controller that automatically starts, stops, or restarts pods from a deployment at a specified time using a cron annotation.

Another Scheduler Another Scheduler is a Kubernetes controller that automatically starts, stops, or restarts pods from a deployment at a specified tim

Diego Najar 47 Oct 13, 2021
Python job scheduling for humans.

schedule Python job scheduling for humans. Run Python functions (or any other callable) periodically using a friendly syntax. A simple to use API for

Dan Bader 9.1k Oct 23, 2021
Crontab jobs management in Python

Plan Plan is a Python package for writing and deploying cron jobs. Plan will convert Python code to cron syntax. You can easily manage you

Shipeng Feng 1.1k Aug 22, 2021
A calendaring app for Django. It is now stable, Please feel free to use it now. Active development has been taken over by bartekgorny.

Django-schedule A calendaring/scheduling application, featuring: one-time and recurring events calendar exceptions (occurrences changed or cancelled)

Tony Hauber 796 Oct 21, 2021