Decorators, with the ability to use call arguments
By using the inspectcall library, calldecorators decorators can make use of call arguments to functions at runtime, and preserves function signature metadata (which is clobbered by most decorators) so that this functionality works even when decorators are stacked.
The error_context decorator uses functionality from tdxutil.exceptions.try_with_lazy_context to wrap a function call in an error handler that can prepend contextual information to an error without affecting the stacktrace. This allows errors raised b low-level code, which may not have enough information to construct error messages indicating what was going on, to be made far more informative.
The debug decorator wraps functions in a debugger post-mortem. The debugger it uses is optionally configurable, you can optionally set a delay so that users can bypass via keyboard interrupt, and you can optionally toggle the behavior on and off (for example, using global configuration).
Metadata
Release files for calldecorators 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 | Provenance | Actions |
|---|---|---|---|---|
| calldecorators-0.0.3.tar.gz | 3.7 kB | Without provenance | Details for calldecorators-0.0.3.tar.gz |
Release files / calldecorators-0.0.3.tar.gz
| Download URL | calldecorators-0.0.3.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03b85a4aef5263a658f3d672362c7e0e4117aea0ceb396765ca10c7ab0d53a50
|
|
BLAKE2b-256 checksum How to use checksums |
466f81236ace53499d5e95c166bf51725a070d85046321be165ac1eabcd14e8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for calldecorators 0.0.3
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.