timelogger: A stopwatch-like time logger for Python programs
- It provides:
Tracking time spent throughout a program in a method similar to a stopwatch
Output via standard Python logger for simplicity
- Original use case:
Python program containing many packages and modules
Needed ability to log time gaps in a centralized way.
e.g. time consumed for imports or function calls
- Installation:
pip install timelogger
(Tested for Python >=3.6.5 on Linux (Ubuntu) and Windows 7/10)
- Usage:
short example:
# Set up your root logger, or use logcontrol import logcontrol # Import the package import timelogger # Customize the package logger, if needed logcontrol.register_logger(timelogger.logger, "timelogger") logcontrol.set_level(logcontrol.DEBUG, group="timelogger") logcontrol.log_to_console(group="timelogger") # Add a start time with a relevant name timelogger.start("imports") # imports of other packages for example purposes import binascii import decimal import hashlib import requests # To log the time differential, set a stop time for the same name timelogger.stop("imports") # To set a specific log level for the time differential logs: (default is logging.INFO) timelogger.set_log_level(logcontrol.DEBUG)
Metadata
Release files for timelogger 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| timelogger-0.0.3.tar.gz | 17.9 kB | Without provenance | Details for timelogger-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| timelogger-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for timelogger-0.0.3-py3-none-any.whl |
Total release size: 23.6 kB
Release files / timelogger-0.0.3.tar.gz
| Download URL | timelogger-0.0.3.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49a38b07a3782d057da57f6f6ae3866a95e0f8b01c7d44563d8d5bc3e0d07bf0
|
|
BLAKE2b-256 checksum How to use checksums |
a2c20a7c0efebcfd65888ae42b0ac00bf6ac0fd7074832a78d00e1708ef40248
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.9
|
Release files / timelogger-0.0.3-py3-none-any.whl
| Download URL | timelogger-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d94f3fbb103e1dcf1d2b1988700333c6b1b7b678330a0cd074f2c79d63baf043
|
|
BLAKE2b-256 checksum How to use checksums |
69dce39c19ec65934a04213f1cb5c84b1842c422f3d1ff1b64196fde1e86dff0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.9
|
Security for timelogger 0.0.3
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.