Skip to main content

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


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)

Uploaded Source

Built Distribution

whiterose-0.1.7-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page