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.
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.
Installation
You can install this library via Pypi:
pip3 install whiterose
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 import Whiterose
wr = Whiterose()
def one_s_timer():
wr.timer_s(1) # 1 second
if __name__ == '__main__':
one_s_timer()
# This example will print the time to the console every 4 seconds
from whiterose import Whiterose
wr = Whiterose()
def one_s_timer():
wr.timer_s(4) # 4 seconds
if __name__ == '__main__':
one_s_timer()
# This example will print the time to the console every 2 minutes
from whiterose import Whiterose
wr = Whiterose()
def one_m_timer():
wr.timer_m(2) # 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
whiterose-0.1.7.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for whiterose-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe7dd338660ca47791408bddb7a6ff365fa58298b916d64c27781d3997258d70 |
|
MD5 | 83c082d9f604df3759ec45ce89686921 |
|
BLAKE2b-256 | 8dbc74df0194a2a645959aef19c379bec7a4a75c49796f48ea0e90d54807156b |