Skip to main content

Package that implements simple stopwatch class.

Project description

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

Installation

pip install rhei

In a nutshell

from time import sleep
from rhei import Timer

timer = Timer()
timer.start()
sleep(5)
timer.get()  # 5.0

time.pause()
sleep(2)
timer.get()  # 5.0

timer.reset()
timer.get()  # 0.0

timer.start()  # Counting starts again

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/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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rhei-0.1.2.dev1.tar.gz (20.9 kB view hashes)

Uploaded Source

Built Distribution

rhei-0.1.2.dev1-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page