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.4.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file utils-core-0.0.4.tar.gz
.
File metadata
- Download URL: utils-core-0.0.4.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6rc1+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1a6e48df8ffce0ee0fa30ab0117096004a2bec7a46eadecbc1d2e2f56e4ce68 |
|
MD5 | 952c870736ebd770d7468be8c9d27e61 |
|
BLAKE2b-256 | b0b6490e8c86cc880b3aa499a25041cb1eb2cfab7abad6f54fd1c10483fe17ea |
File details
Details for the file utils_core-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: utils_core-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6rc1+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e254029cd50491149306299f3ca6759591b437123b9c4255f44f55565c65cb6 |
|
MD5 | 68cb5f2a73deb971d9be77a47348b801 |
|
BLAKE2b-256 | 307fd885337c0057b063d881622a84ad2966bb8186e644170fc37c6b1691cb0c |