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.
Metadata
Release files for rhei 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| rhei-0.5.2.tar.gz | 23.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rhei-0.5.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.3 kB
Release files / rhei-0.5.2.tar.gz
| Download URL | rhei-0.5.2.tar.gz |
|---|---|
| Size | 23.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85e640a454468b05ff226f4a78f34804f7c4ebfd3b9eb7d0072349151b929dca
|
|
BLAKE2b-256 checksum How to use checksums |
b6c15f95123cf75a27b047c3626e6b2666d1399737ddf06e24d0d4c9410aa9b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / rhei-0.5.2-py3-none-any.whl
| Download URL | rhei-0.5.2-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79cde150b7aaa803f4ba7fd6d21435f96adab911c68779a407cc67a90a326cea
|
|
BLAKE2b-256 checksum How to use checksums |
9a41f6eb383f1e7b09d346ed614096fc8f0ebcccc0a45725f19a7e85f55d3bcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for rhei 0.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.