Whiterose Timing Library
Project description
Whiterose
Whiterose is a pure Python library built to return the current time in real-time within a single stdout. This Python library does not require any external libraries. This project is still in a semi-WIP state.
Installation
You can install this library via Pypi:
pip3 install whiterose
Usage
A script has been provided for testing the currently functionality of the library.
$ python3 example.py
Options
timer_s() - Time updates in real-time every second
timer_m() - Time updates in real-time every minute
timer_h() - Time updates in real-time every hour
Examples
You can call the library by using this syntax. This example will print the time to the console every second.
from whiterose.whiterose import Whiterose
wr = Whiterose()
def one_s_timer():
wr.timer_s(1) # Real-time timer ever 1 second
if __name__ == '__main__':
one_s_timer()
This example will print the time to the console every 4 seconds.
from whiterose.whiterose import Whiterose
wr = Whiterose()
def one_s_timer():
wr.timer_s(4) # Real-time timer ever 4 seconds
if __name__ == '__main__':
one_s_timer()
This example will print the time to the console every 2 minutes.
from whiterose.whiterose import Whiterose
wr = Whiterose()
def one_m_timer():
wr.timer_m(2) # Real-time timer ever 2 minutes
if __name__ == '__main__':
one_m_timer()
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
Hashes for whiterose-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa5e32e23e7e0f20503c203dca67fc47059497d6a132b043036f7bb17291a094 |
|
MD5 | 7b93bf9601d248fe913096cd9b36f47a |
|
BLAKE2b-256 | 159dadf1bf7948320ce3f344b0386df132a61d6cfbc80ffe6f3fe23122381834 |