Skip to main content

Small utility package for my projects.

Project description

Decorpack

PyPI

A small collection of reusable Python decorators and utilities.

Features

  • logger: pre-configured Python logger ready to use
  • timed: 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pedros-0.0.6.tar.gz (45.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pedros-0.0.6-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

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

Hashes for pedros-0.0.6.tar.gz
Algorithm Hash digest
SHA256 abded3367085d652503cca15b6d3d4e29f87b19f3c1be04ec5a6288fc36c8a91
MD5 e2a7001fd08d795286f9785995efb994
BLAKE2b-256 9f98ae94fa06deb329b49f59489cf7825c0999fc735859ef4b924e0575b93b53

See more details on using hashes here.

Provenance

The following attestation bundles were made for pedros-0.0.6.tar.gz:

Publisher: python-publish.yml on PierreLapolla/pedros

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pedros-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 574833e1035a5e62ee615dd5ff5c54e450a6f7e37b1d2325baf15958af7afa6c
MD5 96cf7fb952687aa7b5bae3ecaab5455a
BLAKE2b-256 fb40c49bd67eae340cf7d4b3abb133e247260efc36c683de96f57c06464aec66

See more details on using hashes here.

Provenance

The following attestation bundles were made for pedros-0.0.6-py3-none-any.whl:

Publisher: python-publish.yml on PierreLapolla/pedros

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page