rhei 0.5.2

Creator: bradpython12

Last updated:

0 purchases

rhei 0.5.2 Image
rhei 0.5.2 Images

Languages

Categories

Add to Cart

Description:

rhei 0.5.2

Rhei is a Python 3 package that implements simple stopwatch functionality including pausing, resetting and reverse counting.

Installation
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


Development
Rhei uses docker to create an isolated development environment so your system is not being polluted.

Requirements
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
./bin/host/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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.