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.

Source Distribution

utils-core-0.0.3.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

utils_core-0.0.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file utils-core-0.0.3.tar.gz.

File metadata

  • Download URL: utils-core-0.0.3.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for utils-core-0.0.3.tar.gz
Algorithm Hash digest
SHA256 33de449a8c3e60c3fb7b60912d3e02b8719cc12f6d1a47929af7749bab224218
MD5 9c52cf49dda34a9efb0feb1cdbf6fd0e
BLAKE2b-256 3eba3c9789283375172d4ea3d68f8c1668b0dc5924ae2d12157e00b253bce67e

See more details on using hashes here.

File details

Details for the file utils_core-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for utils_core-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9b358f95412f53ff7997f898c07f5319368d13546f317a08570928ed03512577
MD5 6c5830113b2b4b1ab545a25e47d76d5d
BLAKE2b-256 07bafb6c604047570eb5d5a4a3aa38765c701d4804e5a4dde8ccf8bffd4ccaad

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page