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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pedros-0.0.4.tar.gz
  • Upload date:
  • Size: 25.1 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.4.tar.gz
Algorithm Hash digest
SHA256 6d26421a8ab0be888eb9ae7ee94ad664227c3f1e0b789687fb898b7f78c59f61
MD5 e1842ba1e71d7f662b5a927893ebad27
BLAKE2b-256 f0ae1bd190f971522dbbf74f10cdd007179a355c7e4115b4105e72d13537b3ec

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pedros-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d0cd661af1c6f905b01914592d96224d1acd408021fd0afedc6b5e694d96f6a0
MD5 24c950f0822f32a9ab1bb70d236d3b41
BLAKE2b-256 8b2a42c3c68739777d1519784c8ad5d003decb4715aa03fc6ac9b75cae7b1acb

See more details on using hashes here.

Provenance

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