Skip to main content

colortimelog: A util for logging the time elapsed for a task

Python package PyPI Version Python Versions Downloads

Install

pip install colortimelog

Usage

Add timing for a function:

import colortimelog

@colortimelog.timefunc
def my_function():
  ...

Add timeing for a block of code:

import colortimelog

with colortimelog.timeblock("Doing XYC"):
  do_x()
  do_y()
  do_z()

Logging with verbosity control:

import colortimelog

logger = colortimelog.Logger(verbosity=3)
logger.error("This is an error")
logger.info("This is info")
logger.fatal("This will fail")

Metadata

Release files for colortimelog 0.0.9

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

Source distribution (sdist)

Source distribution for colortimelog 0.0.9
File Size Uploaded Provenance Actions
colortimelog-0.0.9.tar.gz 7.2 kB Without provenance Details for colortimelog-0.0.9.tar.gz

Built distribution (wheel)

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

Total release size: 15.0 kB

Release files / colortimelog-0.0.9.tar.gz

Download URL colortimelog-0.0.9.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d54cbe201992b1b501a84db39a692498e6704d0afd4c294aa1fd4170069d160b
BLAKE2b-256 checksum
How to use checksums
6cba37dcad0f028155ea1118fd113412433121ec6c709be97f7fdddb584c806d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.1

Release files / colortimelog-0.0.9-py3-none-any.whl

Download URL colortimelog-0.0.9-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c8462a4853108fdaeab2f89f968af2b53eef8e1af95d464452b6bfaf56eaa53
BLAKE2b-256 checksum
How to use checksums
d8d119838ff15892f01bcaf58d3d69856686265f85532aeb1c5df1a6fdbb349a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.1

Security for colortimelog 0.0.9

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.

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