Package that implements simple stopwatch class.
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rhei-0.5.2.tar.gz.
File metadata
- Download URL: rhei-0.5.2.tar.gz
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85e640a454468b05ff226f4a78f34804f7c4ebfd3b9eb7d0072349151b929dca
|
|
| MD5 |
c4a6c2f5d0140a15fd8de4cdcde0c114
|
|
| BLAKE2b-256 |
b6c15f95123cf75a27b047c3626e6b2666d1399737ddf06e24d0d4c9410aa9b3
|
File details
Details for the file rhei-0.5.2-py3-none-any.whl.
File metadata
- Download URL: rhei-0.5.2-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79cde150b7aaa803f4ba7fd6d21435f96adab911c68779a407cc67a90a326cea
|
|
| MD5 |
b459192421fff7047d8a170611fef88d
|
|
| BLAKE2b-256 |
9a41f6eb383f1e7b09d346ed614096fc8f0ebcccc0a45725f19a7e85f55d3bcf
|