SyntaxMod
Utility helpers for quick scripting tasks: looping functions, timed waits, and stopwatch/timer primitives with pause/resume support.
Installation
pip install .
Usage
from syntaxmod import loop, wait, Stopwatch, Timer
loop(3, print, ["hello"])
wait(0.5)
watch = Stopwatch()
# ... do work ...
print(f"Elapsed: {watch.pause():.2f}s")
Timer(2.0, lambda: print("done"))
Timer controls
from syntaxmod import Timer
def callback():
print("Timer fired!")
timer = Timer(5, callback, start=False)
timer.resume() # start counting down
wait(2)
elapsed = timer.pause()
print(elapsed)
timer.resume()
Development
python -m build
pytest
Metadata
Release files for syntaxmod 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| syntaxmod-0.1.0.tar.gz | 5.0 kB | Without provenance | Details for syntaxmod-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| syntaxmod-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for syntaxmod-0.1.0-py3-none-any.whl |
Total release size: 10.1 kB
Release files / syntaxmod-0.1.0.tar.gz
| Download URL | syntaxmod-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a978237c43645193819f2fa787753a23b628073392655e15b4eca2b5d463515
|
|
BLAKE2b-256 checksum How to use checksums |
ab643ca45c992c0cc7592ecd59bb1aa46c9d9ee5eb09bdeec05629e157508f48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / syntaxmod-0.1.0-py3-none-any.whl
| Download URL | syntaxmod-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8d1bc9f1a9140629d91da43e9905ce1f6fa4e595a1fe3a2d154034d3712bee4
|
|
BLAKE2b-256 checksum How to use checksums |
a651ad079c688cbd26d8eead42161e92026eb50e544252d9ecec92e9599897e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for syntaxmod 0.1.0
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.