Skip to main content

Personally common and useful Python features

Project description

kaparoo-python

PyPI version Downloads Python License: MIT uv Ruff ty Copier

Personally common and useful Python features.

📦 Installation

Requires Python 3.14+.

# With uv (recommended)
uv add kaparoo-python

# With pip
pip install kaparoo-python

🧩 Modules

kaparoo.filesystem

pathlib-based filesystem helpers.

  • existence — existence checks (*_exists) and ensure_* validators.
  • directorymake_dir(s), dir_empty(s) (with _unsafe variants).
  • utilsstringify_path(s), wrap_path(s).
  • exceptionsDirectoryNotFoundError, NotAFileError.
  • typesStrPath, StrPaths.

kaparoo.filesystem.search

Filesystem traversal with composable filters.

  • Entry pointssearch_paths, search_files, search_dirs.
  • Pattern filtersEquals, StartsWith, EndsWith, Contains, Regex, Glob.
  • Multi-pattern filtersEqualsAny, StartsWithAny, EndsWithAny, ContainsAny.
  • Logical filtersAnd, Or, Not.
  • Deprecatedget_paths, get_files, get_dirs (use search_*).

kaparoo.utils

  • timerTimer and LapTimer context-manager / decorator timers.
  • optionalreplace_if_none, factory_if_none, unwrap_or_*.

📋 TODO

See TODO.md for tracked open items.

📜 Changelog

See CHANGELOG.md for the version history.

⚖️ License

This project is distributed under the terms of 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

kaparoo_python-0.2.0.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kaparoo_python-0.2.0-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file kaparoo_python-0.2.0.tar.gz.

File metadata

  • Download URL: kaparoo_python-0.2.0.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kaparoo_python-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cd4fb7eeaccb6844e9736c7197b1618c07448b1a12dc05d77166dadc08b1e090
MD5 8db170068eedf6cc72e1b4d899572c52
BLAKE2b-256 b3e988ff3b5e5dc174fff63a83449e75788d1c22dfeb585cfcb6678c004b0173

See more details on using hashes here.

File details

Details for the file kaparoo_python-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: kaparoo_python-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kaparoo_python-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e04432ee2023e47750706b5630c17304ae69bc9b00d1c0c1ced4de402fed9ce
MD5 c188a9257ab5c2ca029c89d599737a18
BLAKE2b-256 01c725187b2918a6840106efe97f49d667dcb95a81ccd9eb4a89497138c29f45

See more details on using hashes here.

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