Python utils for everyday use.
Project description
Python Humble Utils
Python utils for everyday use.
Please, open issues before sending emails to the maintainers: You will get a much faster response!
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 python_humble_utils.commands import (
yield_file_paths,
camel_or_pascal_case_to_snake_case
)
# ...
file_paths = yield_file_paths(dir_path=os.path.join('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 scaffolded via Cookiecutter with audreyr/cookiecutter-pypackage template.
History
v2.0.0
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
v0.5.0
v0.4.0
v0.3.0
v0.2.0
First release on PyPI.
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
Hashes for python-humble-utils-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2088a6f9cdb66c9e41d71442735e1d0853484e48d85a857a7ab4d62056cb35a1 |
|
MD5 | 2f4f1be1d0be5655809af70d09a41444 |
|
BLAKE2b-256 | c530e80dc43f939a68c2c53212b718768d37588a1fb1096067e6c966ba7c7bd4 |
Hashes for python_humble_utils-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17b05bc38ff7f6aa5bb608bea415eeb15e96aa93755af2f7766631e764a6b4aa |
|
MD5 | 506f8e2f74a944d81970d9c2da096c29 |
|
BLAKE2b-256 | 42f97ec415bf16dfae801cd048c47ffcd5e9d8d2b13d83029c62e74bf1b27a04 |