Small utility package for my projects.
Project description
Decorpack
A small collection of reusable Python decorators and utilities.
Features
logger: pre-configured Python logger ready to usetimed: decorator to measure execution time
Installation
pip install pedros
Quickstart
You can check the init and main files for examples.
Logger
from pedros.logger import get_logger
logger = get_logger()
logger.info("This is an info message")
You can also override the default logger level and name:
import logging
from pedros.logger import setup_logging, get_logger
setup_logging(logging.ERROR)
logger = get_logger("my_logger")
logger.info("This is an info message")
Timed
from pedros.timed import timed
@timed
def func():
...
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pedros-0.0.6.tar.gz.
File metadata
- Download URL: pedros-0.0.6.tar.gz
- Upload date:
- Size: 45.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abded3367085d652503cca15b6d3d4e29f87b19f3c1be04ec5a6288fc36c8a91
|
|
| MD5 |
e2a7001fd08d795286f9785995efb994
|
|
| BLAKE2b-256 |
9f98ae94fa06deb329b49f59489cf7825c0999fc735859ef4b924e0575b93b53
|
Provenance
The following attestation bundles were made for pedros-0.0.6.tar.gz:
Publisher:
python-publish.yml on PierreLapolla/pedros
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pedros-0.0.6.tar.gz -
Subject digest:
abded3367085d652503cca15b6d3d4e29f87b19f3c1be04ec5a6288fc36c8a91 - Sigstore transparency entry: 774506086
- Sigstore integration time:
-
Permalink:
PierreLapolla/pedros@2f751c0e41136ad1e1107ab92acff2060c1cf306 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/PierreLapolla
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2f751c0e41136ad1e1107ab92acff2060c1cf306 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pedros-0.0.6-py3-none-any.whl.
File metadata
- Download URL: pedros-0.0.6-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
574833e1035a5e62ee615dd5ff5c54e450a6f7e37b1d2325baf15958af7afa6c
|
|
| MD5 |
96cf7fb952687aa7b5bae3ecaab5455a
|
|
| BLAKE2b-256 |
fb40c49bd67eae340cf7d4b3abb133e247260efc36c683de96f57c06464aec66
|
Provenance
The following attestation bundles were made for pedros-0.0.6-py3-none-any.whl:
Publisher:
python-publish.yml on PierreLapolla/pedros
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pedros-0.0.6-py3-none-any.whl -
Subject digest:
574833e1035a5e62ee615dd5ff5c54e450a6f7e37b1d2325baf15958af7afa6c - Sigstore transparency entry: 774506087
- Sigstore integration time:
-
Permalink:
PierreLapolla/pedros@2f751c0e41136ad1e1107ab92acff2060c1cf306 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/PierreLapolla
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2f751c0e41136ad1e1107ab92acff2060c1cf306 -
Trigger Event:
push
-
Statement type: