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.1.2.tar.gz
(8.7 kB
view details)
Built Distribution
File details
Details for the file utils-core-0.1.2.tar.gz
.
File metadata
- Download URL: utils-core-0.1.2.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | adb26be8fda9d25e5650658ac86a510b612aa5cfc36d1c9d83c46060451ebbb6 |
|
MD5 | 9eb9ea7086c91e210a78c93499171235 |
|
BLAKE2b-256 | 47c0dff1ba9922ff6c118fa7c1cff8c3b5bd7b634ed5ce1f050c08f56840f164 |
File details
Details for the file utils_core-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: utils_core-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9d0df0b0a636b854579bfe9d0a9fdf465ce9d6531fdbfa0d420e7d5497019fa |
|
MD5 | c33172659736c3c1641f6910522b86cd |
|
BLAKE2b-256 | 31062c2efef18dbd4be77b849ee513475e53a62179f30e3b59f2a2f21273de37 |