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.9.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.9-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pedros-0.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 8e3456b72f6a8a1de88e313741eac2e99718c58893ddaf3b132b195430c31cdb
MD5 b397667b7c98fc9b8e2dfad2ce508f82
BLAKE2b-256 21ddad3165f1ab70350462f0631159ab153bf71d6c5e3f6ced2f3167220e412d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pedros-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 7.6 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ce9578235c893637188fa6ffb4e1e6c949ab754465c16c84dc40cf1f5fe304fc
MD5 3557714a5fef74b29be64621cce19b2c
BLAKE2b-256 fe5df8563ec42cef7f9c45ad22122a0744eb5e2f78f2b21e3df38c584d77d646

See more details on using hashes here.

Provenance

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