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
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-1.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ebdfa98423c7a26ba9635147473deb7c840ce4fc628d23f66fa8e48cebbc75a |
|
MD5 | d4b34202142832ca650d613023a59ea3 |
|
BLAKE2b-256 | caa433e842564053a2e32b028b287341f5409793ac4bbb5a99a517bb2048ad23 |
Hashes for python_humble_utils-1.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 636e660245521ed4ff8402fce9474545888783dba73931a885779048c469eda5 |
|
MD5 | ce7d4ed5acbf1ccf9e90b1359def9427 |
|
BLAKE2b-256 | 08ff32de94dc3ec42a9910e2eb64a6b5371821bab1c6abc48fffc136aca123bf |