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.4.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

utils_core-0.0.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for utils-core-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b1a6e48df8ffce0ee0fa30ab0117096004a2bec7a46eadecbc1d2e2f56e4ce68
MD5 952c870736ebd770d7468be8c9d27e61
BLAKE2b-256 b0b6490e8c86cc880b3aa499a25041cb1eb2cfab7abad6f54fd1c10483fe17ea

See more details on using hashes here.

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

Hashes for utils_core-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2e254029cd50491149306299f3ca6759591b437123b9c4255f44f55565c65cb6
MD5 68cb5f2a73deb971d9be77a47348b801
BLAKE2b-256 307fd885337c0057b063d881622a84ad2966bb8186e644170fc37c6b1691cb0c

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