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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file whiterose-0.1.7.tar.gz.

File metadata

  • Download URL: whiterose-0.1.7.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.31.0 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/1.5.0 colorama/0.4.6 CPython/3.11.7

File hashes

Hashes for whiterose-0.1.7.tar.gz
Algorithm Hash digest
SHA256 5b155b4fc6cad6bad3d322e287a5eb81e3f024e58fc2c655cf65b1e6e0da5748
MD5 49835426f0a2db086a66e82285a08725
BLAKE2b-256 fc29d574ea4a319eb191bff2d763b0fbc8f97a57a0db6b9e37029d5d3f8cbbeb

See more details on using hashes here.

File details

Details for the file whiterose-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: whiterose-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.31.0 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/1.5.0 colorama/0.4.6 CPython/3.11.7

File hashes

Hashes for whiterose-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fe7dd338660ca47791408bddb7a6ff365fa58298b916d64c27781d3997258d70
MD5 83c082d9f604df3759ec45ce89686921
BLAKE2b-256 8dbc74df0194a2a645959aef19c379bec7a4a75c49796f48ea0e90d54807156b

See more details on using hashes here.

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