Skip to main content

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'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for utils-core, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size utils_core-0.1.2-py3-none-any.whl (7.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size utils-core-0.1.2.tar.gz (8.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page