Function Logger and Timer
This is a Python package that provides decorators for logging function execution and timing function execution.
Installation
You can install the package using pip: 'pip install log_exc_decorator'
Usage
Logging function execution
To log function execution, use the elog decorator. Here's an example:
from log_exc_decorator import elog
@elog
def my_function():
# your code here
pass
This will log the start and end of my_function, as well as any exceptions that may occur.
Timing function execution
To time function execution, use the timeit decorator. Here's an example:
from log_exc_decorator import timeit
@timeit
def my_function():
# your code here
pass
This will time how long it takes to execute my_function and log the elapsed time.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Apache
Metadata
Release files for elog-thiago1080 0.0.5
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 |
|---|---|---|---|---|
| elog_thiago1080-0.0.5.tar.gz | 6.4 kB | Without provenance | Details for elog_thiago1080-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| elog_thiago1080-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for elog_thiago1080-0.0.5-py3-none-any.whl |
Total release size: 12.8 kB
Release files / elog_thiago1080-0.0.5.tar.gz
| Download URL | elog_thiago1080-0.0.5.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65abc834866535d0153f0959eefbc763ce5207027bbf1244f71d65d3975eecc2
|
|
BLAKE2b-256 checksum How to use checksums |
9417eab54d34acdd5eea6a2f5c068373e0e044c940223875cb52d36fb993b834
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.3
|
Release files / elog_thiago1080-0.0.5-py3-none-any.whl
| Download URL | elog_thiago1080-0.0.5-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22b26f07937c42f3e8319a73ee3161256596244cca4a8a8c927ff34cde58b179
|
|
BLAKE2b-256 checksum How to use checksums |
572331410574bf023c8e425f9c031ee9c50c1667845f7069921ab4c8c18ef4cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.3
|
Security for elog-thiago1080 0.0.5
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.