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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pedros-0.0.7.tar.gz
  • Upload date:
  • Size: 41.9 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.7.tar.gz
Algorithm Hash digest
SHA256 c16b7e3bb713a803f2827ab5683f559d8278a1def35b7bc3e9f6612959409efe
MD5 fddbf7f6643bc204f8949ea2c350e46d
BLAKE2b-256 394664eeb0a715bab4a9e8a2df88824ac8d976e451d323638be9d7de6373190c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pedros-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c4e085b77802b6dff5601f683d9b7961edf1f03abc42880b43e81dc8d42ce137
MD5 f149604d10529c7778dd82598c84347e
BLAKE2b-256 f62495ba44d8fdd9d711c6a8e3ab992c8ceaa2454d28caf5048300d1ac855259

See more details on using hashes here.

Provenance

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