Skip to main content
https://badge.fury.io/py/rhei.svg https://circleci.com/gh/dkrystki/rhei.svg?style=svg https://codecov.io/gh/dkrystki/rhei/branch/master/graph/badge.svg https://img.shields.io/badge/python-3.6-blue.svg https://img.shields.io/badge/python-3.7-blue.svg

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.

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)

Source distribution for rhei 0.5.2
File Size Uploaded
rhei-0.5.2.tar.gz 23.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rhei 0.5.2
File Interpreter ABI Platform
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
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page