Skip to main content

Python Humble Utils

Build Status dependabot Coverage Code Climate Latest Version Supported Python Versions Documentation Status MIT License Join the chat at https://gitter.im/webyneter/python-humble-utils

Python utils for everyday use.

Feature Areas

  • File operations.

  • File/directory paths extraction.

  • File/directory paths randomization.

  • String case conversions.

  • Python class convenience shortcuts.

  • py.test fixtures and helpers.

Installation

$ pip install python-humble-utils

or install from sources:

$ python setup.py install

Refer to Installation for detailed instructions.

Usage

import os
from pathlib import Path

from python_humble_utils.filesystem import yield_file_paths
from python_humble_utils.strings import camel_or_pascal_case_to_snake_case


# ...

file_paths = yield_file_paths(
    dir_path=Path("dir") / "with" / "scripts",
    allowed_file_extensions=(".sh", ".bash"),
    recursively=True
)
assert set(file_paths) == set(("s1.sh", "s2.bash", "s3.bash"))

s = camel_or_pascal_case_to_snake_case("camelCasedString")
assert s == "camel_cased_string"

s = camel_or_pascal_case_to_snake_case("PascalCasedString")
assert s == "pascal_cased_string"

# ...

Contributing

Your contributions are very much welcome! Refer to Contributing for more details.

Code of Conduct

All those using python-humble-utils, including its codebase and project management ecosystem are expected to follow the Python Community Code of Conduct.

Acknowledgements

This package was initially scaffolded via Cookiecutter with audreyr/cookiecutter-pypackage template.

History

v3.0.1

v3.0.1.

v3.0.0

v3.0.0.

Breaking changes:

Other changes:

v2.0.0

v2.0.0.

v1.0.4

v1.0.4.

v1.0.3

v1.0.3.

v1.0.2

v1.0.2.

v1.0.1

v1.0.1.

v1.0.0

v1.0.0.

v0.5.0

v0.5.0.

v0.4.0

v0.4.0.

v0.3.0

v0.3.0.

v0.2.0

v0.2.0.

  • First release on PyPI.

Metadata

Release files for python-humble-utils 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-humble-utils 3.1.0
File Size Uploaded Provenance Actions
python-humble-utils-3.1.0.tar.gz 16.6 kB Without provenance Details for python-humble-utils-3.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-humble-utils 3.1.0
File Interpreter ABI Platform Actions
python_humble_utils-3.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for python_humble_utils-3.1.0-py2.py3-none-any.whl

Total release size: 24.7 kB

Release files / python-humble-utils-3.1.0.tar.gz

Download URL python-humble-utils-3.1.0.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1228edc5abe380b5041e5ec85c5a0ee966270972035816c3fb8af3f1c5b87377
BLAKE2b-256 checksum
How to use checksums
c87a792ec8e520bf82580d97fffc4efff1bcb1c48a8a90dd15123ec8e20cb7e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.7

Release files / python_humble_utils-3.1.0-py2.py3-none-any.whl

Download URL python_humble_utils-3.1.0-py2.py3-none-any.whl
Size 8.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
34784313c997a19491893e4f98923efa2cd9176642ad5d4b729ddb8137239bd8
BLAKE2b-256 checksum
How to use checksums
ee55c331ecbf33c9aba370a4b77275e8dbb81d218325fa8497b30bb46cb608fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.7

Security for python-humble-utils 3.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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