Democritus Timer
Democritus functions[1] for working with timers.
[1] Democritus functions are simple, effective, modular, well-tested, and well-documented Python functions.
We use d8s (pronounced "dee-eights") as an abbreviation for democritus (you can read more about this here).
Installation
pip install d8s-timer
Usage
You import the library like:
from d8s_timer import *
Once imported, you can use any of the functions listed below.
Functions
-
def timer_start(name: str = None) -> str: """Start a timer with the given name. Timers can be stopped with the `timer_stop` function."""
-
def timer_get_time(name: str) -> float: """Get the current time for the timer with the given name."""
-
def timer_stop(name: str) -> float: """Stop a timer (you can start a timer with the `timer_start` function)."""
-
def time_it(func): """Return the time it takes func to execute."""
Development
👋 If you want to get involved in this project, we have some short, helpful guides below:
If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.
Credits
This package was created with Cookiecutter and Floyd Hightower's Python project template.
Release files for d8s-timer 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| d8s_timer-0.6.0.tar.gz | 109.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| d8s_timer-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:128.6 kB
Release files / d8s_timer-0.6.0.tar.gz
| Download URL | d8s_timer-0.6.0.tar.gz |
|---|---|
| Size | 109.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5ede2849274edf1efd18271af9eb9acf631329a353d85e20158d71fc44559ec
|
|
BLAKE2b-256 checksum How to use checksums |
da9fad75200f69b927375109d1d0cd7db2efb4d7e5911b816e58314236fe9310
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.
Transparency logRelease files / d8s_timer-0.6.0-py3-none-any.whl
| Download URL | d8s_timer-0.6.0-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0aee779c36248ac1fdb96b9123ede484aafd072675aac9f20ba135453f99c787
|
|
BLAKE2b-256 checksum How to use checksums |
9f64488d2dbc7d378f61844b51c7703bb80ede398b6d0ea607c03b059efe430b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.
Transparency log