Christopher H. Todd's Python Library For Wrapping Callable Execution
The ctodd-python-lib-execution project is responsible for warpping callables in Python to wrap in function logging, execution time, and other quality of life improvements. Useful for wrapping functions with start and stop timers.
Table of Contents
Dependencies
Python Packages
- wrapt>=1.11.1
Libraries
function_executors.py
Library for Logging the Execution Details of any callable or the main() function of a script.
Functions:
def main_executor(wrapped, instance, args, kwargs):
"""
Purpose:
Decorator for running the main() function. Decorator will
log the start and completion of the script, time the
execution and performance of the script, and handle
and exceptions (log the exception to the log file and raise)
Args:
wrapped (main function):
instance: pass in self when wrapping class method.
default is None when wrapping function.
args (Tuple): List of arguments
kwargs (Dict): Dictionary of named arguments
"""
Example Scripts
Example executable Python scripts/modules for testing and interacting with the library. These show example use-cases for the libraries and can be used as templates for developing with the libraries or to use as one-off development efforts.
N/A
Notes
- Relies on f-string notation, which is limited to Python3.6. A refactor to remove these could allow for development with Python3.0.x through 3.5.x
TODO
- Unittest framework in place, but lacking tests
Metadata
Release files for ctodd-python-lib-execution 1.0.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 |
|---|---|---|---|---|
| ctodd-python-lib-execution-1.0.0.tar.gz | 4.8 kB | Without provenance | Details for ctodd-python-lib-execution-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ctodd_python_lib_execution-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ctodd_python_lib_execution-1.0.0-py3-none-any.whl |
Total release size: 9.8 kB
Release files / ctodd-python-lib-execution-1.0.0.tar.gz
| Download URL | ctodd-python-lib-execution-1.0.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4bdb3e65e2313703eee6d41a633df09a8cdb20f4c78c92a71a0f2d9b9ed72740
|
|
BLAKE2b-256 checksum How to use checksums |
e161ceeda7e7ef5b5d49a3484792158ddc82924d805d9e151f0f7fca93f784b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
|
Release files / ctodd_python_lib_execution-1.0.0-py3-none-any.whl
| Download URL | ctodd_python_lib_execution-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fda31d6d8ded47f89e63b6d8d6c3af246f17c2c2b6e2c79ea5ddfe4491d90c36
|
|
BLAKE2b-256 checksum How to use checksums |
4d84bf496ba504026ee33f8b9ef47164d28d9d49d5d3631308383b9cf67167e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
|
Security for ctodd-python-lib-execution 1.0.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.