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
0.1.0 (2017-06-18)
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-0.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03fe29a48c44fb7f9964870ebd06882107aaad29acf980cbc6859b99d32c3b84 |
|
MD5 | 0509ffafc5eb5fd1d6eff6e8d2e3a777 |
|
BLAKE2b-256 | ee4d46a5276e7114268a311c0f6f7c043da4d0edb07405a486b82d54707e79bb |
Hashes for python_humble_utils-0.4.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcfb382a89ae264f6b85af29dabaa01a4326356e2eb33308d85535c437464679 |
|
MD5 | 50ac3701371d283494a1e9697601a9b7 |
|
BLAKE2b-256 | b97c5345762e92a5b5344d9d68102ee6db20209a78b09cec9cee1642a1e4763c |