This repo hosts 3 useful decorators that might come handy while prototyping namely -
@debug
@timer
@safe_run
debug and timer are taken from https://realpython.com/primer-on-python-decorators/.
@debug prints the function name with the arguments passed and the return value at the end each time a function is called.
@timer as the name suggests times the function to be executed and in the end prints the total time taken by that function.
@safe_run is in brief tries to run the function and prints the error in case the function throws some error. @safe_run takes dictionary of parameters also to let the user customize the behavior of it.
Metadata
Release files for decos 0.0.12.post10
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 |
|---|---|---|---|---|
| decos-0.0.12.post10.tar.gz | 2.8 kB | Without provenance | Details for decos-0.0.12.post10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| decos-0.0.12.post10-py3-none-any.whl | Python 3 | none | any | Details for decos-0.0.12.post10-py3-none-any.whl |
Total release size: 6.9 kB
Release files / decos-0.0.12.post10.tar.gz
| Download URL | decos-0.0.12.post10.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f381638f9c704a0c9946c98b9ed28d92d649505112abfdb4f48b959b127da01a
|
|
BLAKE2b-256 checksum How to use checksums |
3cd9798eff23f40aa33d083718b448be81ba8413a839b101ae330d0e74ec8be7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.9
|
Release files / decos-0.0.12.post10-py3-none-any.whl
| Download URL | decos-0.0.12.post10-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ba817eb05c921f2afa7401e9455aefd24451f7a757cb2201a2ad4ce6d529c59
|
|
BLAKE2b-256 checksum How to use checksums |
f96100254c6d3b754bf9fcdd00ab9209c251e4042fa1f8f43365bcde3d43246c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.9
|
Security for decos 0.0.12.post10
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.