Skip to main content

Pedros

PyPI

A small package of reusable Python utilities for Python projects.

Features

  • Dependency Management: Smart detection of optional dependencies (rich, tqdm)
  • Logging: Simplified logging setup with optional Rich support
  • Progress Bars: Unified progress bar API with multiple backends
  • Decorators: Robust decorators for timing (@timed) and error handling (@safe)
  • Type Safe: Comprehensive type hints and PEP 561 compliance

Installation

pip install pedros

OR

uv add pedros

rich and tqdm are optional and auto-detected at runtime — install either yourself to get the enhanced logging/progress-bar backend.

Documentation

Full usage guide, one page per feature, with examples: pierrelapolla.github.io/pedros

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! To set up a dev environment:

  1. Install uv.
  2. Clone the repo and install dependencies:
    git clone https://github.com/pierrelapolla/pedros.git
    cd pedros
    uv sync --group dev --group docs
    
  3. Install the pre-commit hooks:
    uv run pre-commit install
    
  4. Run the test suite:
    uv run pytest
    
  5. Preview the docs locally:
    uv run --group docs zensical serve
    

Before opening a pull request, run the hooks against the full tree:

uv run pre-commit run --all-files

Support

For questions or support, please open a GitHub issue.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pedros-0.13.1.tar.gz
  • Upload date:
  • Size: 71.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pedros-0.13.1.tar.gz
Algorithm Hash digest
SHA256 c42a63ca4c8abfbf51c13271ad3dc3d70fc22f18bc5407cda50e255f55f07fdd
MD5 66a617f0c8e64a1ac4fe7d6d035f848a
BLAKE2b-256 bd8bdd6be2b5e639b25d0819d4d2ada1dc3159250e572da5bf3a16bfa58b64db

See more details on using hashes here.

File details

Details for the file pedros-0.13.1-py3-none-any.whl.

File metadata

  • Download URL: pedros-0.13.1-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pedros-0.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e543054eae2354172a9c5689eb16f55b5201f571aa9e7cd10d017762e54e394
MD5 09959315243b680985e27cd5dbedc92c
BLAKE2b-256 f3416f54ec6f6ec4713fb9c28dd0a0476bc5fbada871e8ef0ddd163c51f15d96

See more details on using hashes here.

Release history Release notifications | RSS feed

0.16.1

2 files

0.16.0

2 files

0.14.0

2 files

This release

0.13.1 This release

2 files

0.13.0

2 files

0.12.3

2 files

0.12.2

2 files

0.12.1

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page