General utilities on top of Python standard libraries
Project description
utils-core
General utilities on top of Python standard libraries.
Examples for process-related utilities:
from utils.process import run, silent_run
run('ls -l')
out = run(['ls', '-l'], return_output=True)
# Just runs without any output to stdout. Alias for: run(..., silent=True)
silent_run('ls -l')
Examples for filesystem-related utilities:
import os
from utils.fs import in_dir, in_temp_dir
with in_temp_dir() as tmpdir:
assert os.getcwd() == tmpdir
with in_dir('/tmp'):
assert os.getcwd() == '/tmp'
Links & Contact Info
PyPI Package: https://pypi.python.org/pypi/utils-core
GitHub Source: https://github.com/maxzheng/utils-core
Report Issues/Bugs: https://github.com/maxzheng/utils-core/issues
Follow: https://twitter.com/MaxZhengX
Connect: https://www.linkedin.com/in/maxzheng
Contact: maxzheng.os @t gmail.com
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
utils-core-0.0.5.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for utils_core-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2d0c18e98778eccc27dfa4f0d0ec02ded164a292c98b1a845ca066c8a0ca09d |
|
MD5 | 12e505bcaf59c48e1e867544102d70e7 |
|
BLAKE2b-256 | c8b10f104423a3d9048f573a09d52468073d01c3feb45fc4280d98ffc7762229 |