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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pedros-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 3f4ce26288ceeb1d62f3f28203caff4cfad389bca22801ba2825b7e80904d4bb
MD5 d16aaf15dbab843cff1cdb433c81a297
BLAKE2b-256 d0158d01348c079dc7185f78bcf46f3082301b5944adce7d5f0d5d3f5f494ea9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pedros-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c315a5896b9375ec451333fcf222a575a63e1503bdee62b13a4fba8ca0eef5e9
MD5 592ec5bb699a773d735aa847e8a6524a
BLAKE2b-256 fca58c56fe83b7d4954541a80d4518fa73c66dfa912a8224968a7ad943e61bf3

See more details on using hashes here.

Provenance

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