Skip to main content

A simple library for various miscellaneous things

Project description

TSRU (TSR Utils)

A python library for doing various miscellaneous things

Features

tsru.printing

  • LoadingSpinner

    Shows a spinner in the console while you can do something else in the background. Has support for custom loading, done and failed messages. It comes with in-build colorama support for the default values.
    Example:

    from tsru.printing import LoadingSpinner
    import time
    
    spinner = LoadingSpinner("Running message", "Done msg", "Failed msg") 
    time.sleep(1)
    spinner.stop() # We are successfully done
    
    spinner = LoadingSpinner("Running message", "Done msg", "Failed msg")
    time.sleep(1)
    spinner.stop(False) # Something failed
    

    / Running message
    \ Running message
    - Running message
    / Running message
    Done msg Running message
    / Running message
    \ Running message
    - Running message
    / Running message
    Failed msg Running message

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

tsru-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file tsru-0.1.0.tar.gz.

File metadata

  • Download URL: tsru-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for tsru-0.1.0.tar.gz
Algorithm Hash digest
SHA256 355fec4bf0e067285b34fa5085948fdc041e6dcbff9081e13ebfe2c3f14ef75a
MD5 959ec62249e8b414d9683bcecf64b621
BLAKE2b-256 8c3c944cff47919270230541a49097691f7dff1ebb11333f9d2c8610516bb2cf

See more details on using hashes here.

Supported by

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