Personally common and useful Python features
Project description
kaparoo-python
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) andensure_*validators.directory—make_dir(s),dir_empty(s)(with_unsafevariants).utils—stringify_path(s),wrap_path(s).exceptions—DirectoryNotFoundError,NotAFileError.types—StrPath,StrPaths.
kaparoo.filesystem.search
Filesystem traversal with composable filters.
- Entry points —
search_paths,search_files,search_dirs. - Pattern filters —
Equals,StartsWith,EndsWith,Contains,Regex,Glob. - Multi-pattern filters —
EqualsAny,StartsWithAny,EndsWithAny,ContainsAny. - Logical filters —
And,Or,Not. - Deprecated —
get_paths,get_files,get_dirs(usesearch_*).
kaparoo.utils
timer—TimerandLapTimercontext-manager / decorator timers.optional—replace_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd4fb7eeaccb6844e9736c7197b1618c07448b1a12dc05d77166dadc08b1e090
|
|
| MD5 |
8db170068eedf6cc72e1b4d899572c52
|
|
| BLAKE2b-256 |
b3e988ff3b5e5dc174fff63a83449e75788d1c22dfeb585cfcb6678c004b0173
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e04432ee2023e47750706b5630c17304ae69bc9b00d1c0c1ced4de402fed9ce
|
|
| MD5 |
c188a9257ab5c2ca029c89d599737a18
|
|
| BLAKE2b-256 |
01c725187b2918a6840106efe97f49d667dcb95a81ccd9eb4a89497138c29f45
|