Package that implements simple stopwatch class.
Rhei is a Python 3 package that implements simple stopwatch functionality including pausing, resetting and reverse counting.
pip install rhei
In a nutshell
from time import sleep from rhei import Stopwatch stopwatch = Stopwatch() stopwatch.start() sleep(5) stopwatch.value # 5.0 stopwatch.pause() sleep(2) stopwatch.value # 5.0 stopwatch.reset() stopwatch.value # 0.0 stopwatch.reset(10.0) stopwatch.value # 10.0 stopwatch.start(reversed=True) # Start counting down sleep(2) stopwatch.value # -2.0
Rhei uses docker to create an isolated development environment so your system is not being polluted.
In order to run local development you have to have Docker and Docker Compose installed.
Starting things up
docker-compose up -d
Logging into the docker terminal
The code is synchronised between a docker container and the host using volumes so any changes ( pipenv install etc ) will be affected on the host.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size rhei-0.5.2-py3-none-any.whl (7.7 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size rhei-0.5.2.tar.gz (23.5 kB)||File type Source||Python version None||Upload date||Hashes View|