Provide a convenient way to define dispatch depending on outside APIs or other factors.
Installation
Waist requires Python 3.8 or higher.
pip install waist
What's This?
Waist helps you define dispatch methods for externally dependent APIs.
from waist import API
import bpy # 3D software Blender API
# Set the API that we need to support.
api = API(".".join(bpy.app.version))
@api(">4")
def f():
return "Do something that only works in versions before 4."
@api("==4.0.1")
def f():
return "Something happened in 4.0.1 that needs specific fix."
@api()
def f():
return ("Generic or default function that gets called if no suitable version spec is found."
"In this case if the version is 4 or above (but not 4.0.1)")
Metadata
Release files for waist 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 |
|---|---|---|---|---|
| waist-0.1.0.tar.gz | 3.7 kB | Without provenance | Details for waist-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| waist-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for waist-0.1.0-py3-none-any.whl |
Total release size: 6.9 kB
Release files / waist-0.1.0.tar.gz
| Download URL | waist-0.1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43fc72eab2caeb62443e29c91faf8efcbce084d1a12594f6bebe622b3bbc3cd4
|
|
BLAKE2b-256 checksum How to use checksums |
115657c54cd4ff17cc82c06ce3ef02f5318f2e71a4c31d82e5b878b8a5ba7633
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.2
|
Release files / waist-0.1.0-py3-none-any.whl
| Download URL | waist-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ccef5aa2a5a80a95b93a96b957e0490e0ce9d25c1a5a8da12990814bbbdaa4b
|
|
BLAKE2b-256 checksum How to use checksums |
e5979e2aa24684ab591f2de542ccc58d64cdbad51b9035e78429d991095df736
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.2
|
Security for waist 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.