supertime: a living example of the superfunctions
The transfunctions library introduces a new type of function: superfunction. They can behave both as regular and asynchronous functions, depending on the context, that is, on how the user uses them. This micro-library demonstrates the smallest example of this concept that I could come up with.
Install it:
pip install supertime
And try:
from asyncio import run
from supertime import supersleep
supersleep(5) # sleeps 5 sec.
run(supersleep(5)) # sleeps 5 sec., but ASYNCHRONOUSLY.
As you can see, the superfunction can automatically adjust to how the calling code uses it.
Metadata
Release files for supertime 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| supertime-0.0.3.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| supertime-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / supertime-0.0.3.tar.gz
| Download URL | supertime-0.0.3.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
735ea3216747971fcc41e03f20e7dbabb4232f4c5924ea805280ec6d1ad41c2a
|
|
BLAKE2b-256 checksum How to use checksums |
12a34badf4247f71b3e885af2d7c254d11924bf30bc7e3686a6876af0f1266c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Oct 30, 2025.
Transparency logRelease files / supertime-0.0.3-py3-none-any.whl
| Download URL | supertime-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2dd87e95d317939926d13af7bb17b5b4b9c1ae96215e0927c1163e8e1a2adf7c
|
|
BLAKE2b-256 checksum How to use checksums |
a83fd8c029aa4285bdf78ae3ef4fa629979b216f77caaac52e746cf61b44af52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Oct 30, 2025.
Transparency log