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.0.tar.gz
(7.9 kB
view details)
Built Distribution
File details
Details for the file utils-core-0.1.0.tar.gz
.
File metadata
- Download URL: utils-core-0.1.0.tar.gz
- Upload date:
- Size: 7.9 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 | d1eb815855dc0e8839680d25857fdb7ebb7137cf4def502a72fce1714111b0ef |
|
MD5 | 7ec8520796238a93069cb70def3446af |
|
BLAKE2b-256 | 0afc020db55b005046a641feba68e473531ea7c9da125f25edad7300f048533e |
File details
Details for the file utils_core-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: utils_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 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 | 7163bec9f4d3279a261714dee0355e4a8845a1cd5fc4f4ac7211e753729c122d |
|
MD5 | 2bcf03f48cc801652f380b59c6f83120 |
|
BLAKE2b-256 | 2a0fdd9ecc49578bb091ef183369884f7cab5d151bc5c73ee9893c441d1a6c03 |