🕐 timeblock
Helpful snippet for timing blocks, basically contexttimer with a few tweaks / forked.
pip install timeblock==0.1.1
from timeblock import Timer
with Timer() as timer:
sleep(1)
print(timer.elapsed) # 1s
with Timer(output=True):
sleep(1)
# logger.debug(f"Elapsed time: {timer.elapsed}"
with Timer("sleepy time", output=print):
sleep(1)
# print("sleepy time took {:.3f} seconds".format(timer.elapsed))
Metadata
Release files for timeblock 0.1.1
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 |
|---|---|---|---|---|
| timeblock-0.1.1.tar.gz | 2.4 kB | Without provenance | Details for timeblock-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| timeblock-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for timeblock-0.1.1-py3-none-any.whl |
Total release size: 5.0 kB
Release files / timeblock-0.1.1.tar.gz
| Download URL | timeblock-0.1.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
644b71ca58f6324a90cd867554b2cab6e78e614e4c02e2ced1c4731b6ef147df
|
|
BLAKE2b-256 checksum How to use checksums |
c7f9288c9ddd2acaca3ad80ec384f7db0fde550348e02d9c3177692511e8afb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / timeblock-0.1.1-py3-none-any.whl
| Download URL | timeblock-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8c29038664c3b09200bf6ad2fe34413909677c480263f8a73febde9976a42a5
|
|
BLAKE2b-256 checksum How to use checksums |
b5689a1e4051e3f7b0fe043f81a22d2156aff069e2f869ac1b5687a565af7c1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Security for timeblock 0.1.1
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.