abd - Abstract Base Decorator
abd provides an AbstractBaseDecorator class which you can inherit from to create flexible decorators.
Example
>>> from abd import ABD
>>> class Decorator(ABD):
... def invoke(self, *args, **kwargs):
... """Must write an invoke function
... invoke is called when the decorated function is called
... """
... # catch, edit and pass on the (keyword) arguments
... # that are given the the decorated function
... print('invoke is called')
... result = self.decorated_object(*args, **kwargs)
... # function has been called and result is available
... # possible to edit the result here
... return result
...
>>> @Decorator
... def func(argument):
... # some function logic ...
... return argument
...
>>> func('some text')
invoke is called
'some text'
>>>
PyPI
Metadata
Release files for abd 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 |
|---|---|---|---|---|
| abd-0.0.3.tar.gz | 11.2 kB | Without provenance | Details for abd-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| abd-0.0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for abd-0.0.3-py2.py3-none-any.whl |
Total release size: 21.5 kB
Release files / abd-0.0.3.tar.gz
| Download URL | abd-0.0.3.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b9052f300a8d047501559c5476da143001794ccc0b93b692d3043958b1299f9
|
|
BLAKE2b-256 checksum How to use checksums |
f872cff93a2c1d9419b6e456dc1372a99f22821581a94d92e809760bbc9998c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / abd-0.0.3-py2.py3-none-any.whl
| Download URL | abd-0.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2b9f6a17f9bea809af45b14805da9b63050d05df2545c8074d818fc7eec07381
|
|
BLAKE2b-256 checksum How to use checksums |
ba9f89c8a2938603b128e65b30ce300a7c65281f10e6706f80ca6e328a45562f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Security for abd 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.