蟒蛇每天的使用。
python-humble-utils的Python项目详细描述
python humble实用程序
日常使用的python实用程序。
- Documentation。
- 请,open issues在向维护人员发送电子邮件之前:您将得到更快的响应!
功能区
- 文件操作。
- 文件/目录路径提取。
- 文件/目录路径随机化。
- 字符串大小写转换。
- python类便利快捷方式。
- py.test固定装置和助手。
使用量
importosfrompython_humble_utils.commandsimport(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。
行为准则
所有使用python-humble-utils的人,包括其代码库和项目管理生态系统,都应该遵循Python Community Code of Conduct。
确认
这个包是通过Cookiecutter和audreyr/cookiecutter-pypackage模板构建的。
历史记录
v2.0.0
v1.0.3
v1.0.0
v0.5.0
- Document python_humble_utils package。
- Introduce local requirements。
- Stop using pip-tools。
- Point out that all paths in docs are relative to the project root。
- Prevent pip-tools from injecting indirect requirements。
- Target stable docs version only。
- Fix README not rendered on PyPI。
- Ensure codecov evaluates coverage against payload files only。