Skip to main content

(‘Tim: Timed iteration monitorn============================nnA common pattern I have when writing code to import or treat large chunk of data is to do some printing to track the progress and some timing to monitor the speed.nSo I often end up with some variation of this in my code:nn```pythonnfrom datetime import datetimenstart = datetime.now()nn = 0nfor i in my_iter:n n+=1n print “\r”, i,n # do stuffnprint start - datetime.now()nprint (start - datetime.now()) / n / 100n```nnnwhich is a lot to remember and type which in turn make it easy to introduce bugs in some edge case which you need then to debug.nnSo I wrote tim to help me do just that, so I have this pattern ready for use and working and can spend my time coding my data treatment instead of debbugging my helper code.nn*WARNING* : This is alpha level stuff, I'm still working out the proper way to do stuff so the API may still change a bit.nnHow to use timn————–nnCommon usage pattern would probably be:nn```pythonnimport timnntim.start()nfor i in my_iter:n tim.pulse_print() # print current progressn # do stuffntim.stop() # print overall stats and reset countern```nnIf you just need to monitor start and stop you can use:nn```pythonntim.start()n# calculationntim.stop() # print elapsed time and resetn```nnnInstallationn————nn pip install timn’,)

Metadata

Release files for tim 0.5

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

Source distribution (sdist)

Source distribution for tim 0.5
File Size Uploaded Provenance Actions
tim-0.5.tar.gz 2.4 kB Without provenance Details for tim-0.5.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for tim 0.5
File Interpreter ABI Platform Actions
tim-0.5-py2.py3-none-any.whl Python 3, Python 2 none any Details for tim-0.5-py2.py3-none-any.whl
tim-0.5-py2.7.egg Legacy Egg format - - Details for tim-0.5-py2.7.egg

Total release size: 8.8 kB

Release files / tim-0.5.tar.gz

Download URL tim-0.5.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1e626db1af5b5d4e64bcb964da184d8080225948a6195d7affcb127b4cc66996
BLAKE2b-256 checksum
How to use checksums
37c40b4e35e926a11158388013a62008af68a5dbbc796010c2f6f08752cd1572
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / tim-0.5-py2.py3-none-any.whl

Download URL tim-0.5-py2.py3-none-any.whl
Size 4.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3c0bdd6bc1263ef3ce5803ea601634ecb1dcf46524e6f0dbdbc38f4c6d8638b6
BLAKE2b-256 checksum
How to use checksums
7f970437907a413f8cc30a19f5659a4ad8e59ab6464f50b780ed6d65600f3454
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / tim-0.5-py2.7.egg

Download URL tim-0.5-py2.7.egg
Size 2.5 kB
Tags Egg
SHA-256 checksum
How to use checksums
a0d85c3fcddc855cd4e6c0a2e507f3d9017bc65977150fe6dafb740026a2bbed
BLAKE2b-256 checksum
How to use checksums
586759d3a1f28ad7a89b4bf158a352902855b520915a7b6f4dc10dea936a120d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for tim 0.5

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