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.5.tar.gz (40.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.5-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pedros-0.0.5.tar.gz
  • Upload date:
  • Size: 40.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.5.tar.gz
Algorithm Hash digest
SHA256 5e2e8a682b8ac3eff11bbdd134379ea25b76ae0d6089640a7ea7db5ab52aa69f
MD5 f55e96feb5f14c6a4cea59d18e168ee6
BLAKE2b-256 9aa7df7d72ad8b249c656e795ae916ff2ae311ecb5a1bc2c698a4b74a407b5a1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pedros-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c5dc4829215303361e56987527855ff7b309cf6573a97ff635ed4147f1da9d9c
MD5 a51e06d2972c79c39041303ffdc5f873
BLAKE2b-256 3a97f57afcf6b72fb8f280d4ecc7eaf413fee97a6729acb63a513f11be87b618

See more details on using hashes here.

Provenance

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