Skip to main content

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'

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

utils_core-0.1.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: utils-core-0.1.2.tar.gz
  • Upload date:
  • Size: 8.7 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

Hashes for utils-core-0.1.2.tar.gz
Algorithm Hash digest
SHA256 adb26be8fda9d25e5650658ac86a510b612aa5cfc36d1c9d83c46060451ebbb6
MD5 9eb9ea7086c91e210a78c93499171235
BLAKE2b-256 47c0dff1ba9922ff6c118fa7c1cff8c3b5bd7b634ed5ce1f050c08f56840f164

See more details on using hashes here.

File details

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

File metadata

  • Download URL: utils_core-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 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

Hashes for utils_core-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a9d0df0b0a636b854579bfe9d0a9fdf465ce9d6531fdbfa0d420e7d5497019fa
MD5 c33172659736c3c1641f6910522b86cd
BLAKE2b-256 31062c2efef18dbd4be77b849ee513475e53a62179f30e3b59f2a2f21273de37

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page