Skip to main content

tprogress

Simple time capturing for python, that logs the time passed since last call with logger level.DEBUG.

How-to

Time Logging

  1. Create tprogress class instance, e.g. timep = tprogress.progress() . Starts the clock.
  2. Call tprogress.elapsed_time (self,stage='') that returns a formatted string with time and in debug mode the time. The argument stage is a string that can be used to state at what stage the program is when called.

Example

  • DEBUG:tprogress:Elapsed Time: 1m 0.683s ( 0: 1:0.7) - Backward Calculation of Rank

Time Monitoring

  1. Create tprogress class instance, e.g. timep = tprogress.progress(max_num=100,step_size=1,freq=5) . Starts the clock.
  2. Call tprogress.monitor() within a large for-loop that tells about how far program is and predicts when the loop is finished. The setting is done in the init call:
  • max_num: Number of loops, e.g. 100
  • step_size: Size of step, e.g. 1
  • freq: How often an info print should be done, e.g. 5, every 5th loop iteration

Metadata

Release files for tprogress 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tprogress 0.0.6
File Size Uploaded Provenance
tprogress-0.0.6.tar.gz 2.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tprogress 0.0.6
File Interpreter ABI Platform
tprogress-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 5.9 kB

Release files / tprogress-0.0.6.tar.gz

Download URL tprogress-0.0.6.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6d28f571d54663d40c1d36ce502c634725cfb4ce09871dc676932aa0aa3142f1
BLAKE2b-256 checksum
How to use checksums
9312afb93418038512633f376e6d21f709886e1048291177da3b08093c52bfed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Release files / tprogress-0.0.6-py3-none-any.whl

Download URL tprogress-0.0.6-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8f1258a1f94ac6d23fec0a13b25cb6b90c2fc1c1fe0bbb036b9824a39f1dc90
BLAKE2b-256 checksum
How to use checksums
2ed0672153d8aa343be2a85caa827163836a10bc2a20451d364d016823ac6649
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Security for tprogress 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page