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.1.tar.gz
(8.5 kB
view details)
Built Distribution
File details
Details for the file utils-core-0.1.1.tar.gz
.
File metadata
- Download URL: utils-core-0.1.1.tar.gz
- Upload date:
- Size: 8.5 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 | f18e3b0e79c8db226e59e3b4e2bb0e58d7e32c8c9906973e363ba01562a0b686 |
|
MD5 | 571c0823052b3a76dabe67ab1ae3d9e1 |
|
BLAKE2b-256 | 3933d48b5c2baff8d692012811bfe661643ced844a0fa8534e3c965017510a09 |
File details
Details for the file utils_core-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: utils_core-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.5 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 | ef904e9f009485b7bbd997bd16eebb25f13bb180871ad0696bd213308a956742 |
|
MD5 | bf27a7d37fe42b761928deea84fe96af |
|
BLAKE2b-256 | 504f69ff2bb0a9417d3273643ea2d04a4ca4facaa81c881ebe0c6878afe2ee91 |