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.8.tar.gz (42.4 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.8-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file pedros-0.0.8.tar.gz.

File metadata

  • Download URL: pedros-0.0.8.tar.gz
  • Upload date:
  • Size: 42.4 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.8.tar.gz
Algorithm Hash digest
SHA256 543eb8a64dbdb15feb90e71730d894a1f6a71ea10631e9faddbb993ca6350814
MD5 9c03bf9d36e4cca3dac050ec4778a3ab
BLAKE2b-256 1d1b27f474fd187f870e5931cd7c82d55d5f4794d7e23508f34d3dfad7a1eef1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pedros-0.0.8.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.8-py3-none-any.whl.

File metadata

  • Download URL: pedros-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 bd3758336ed783553709c9ecf4293ab90eb9cbca504ded41af0ff4cf3719df2d
MD5 da555555ff2c91f78c8311b63e085a1f
BLAKE2b-256 38f200bccfb6a6b4506f62b155a1286084fcce2af82ff5bea417763244d484dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for pedros-0.0.8-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