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.3.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file utils-core-0.0.3.tar.gz
.
File metadata
- Download URL: utils-core-0.0.3.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33de449a8c3e60c3fb7b60912d3e02b8719cc12f6d1a47929af7749bab224218 |
|
MD5 | 9c52cf49dda34a9efb0feb1cdbf6fd0e |
|
BLAKE2b-256 | 3eba3c9789283375172d4ea3d68f8c1668b0dc5924ae2d12157e00b253bce67e |
File details
Details for the file utils_core-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: utils_core-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b358f95412f53ff7997f898c07f5319368d13546f317a08570928ed03512577 |
|
MD5 | 6c5830113b2b4b1ab545a25e47d76d5d |
|
BLAKE2b-256 | 07bafb6c604047570eb5d5a4a3aa38765c701d4804e5a4dde8ccf8bffd4ccaad |