🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

utils-core

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utils-core

General utilities on top of Python standard libraries

0.1.2
PyPI
Maintainers
1

utils-core

General utilities on top of Python standard libraries.

Examples for process-related utilities:

.. code-block:: python

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:

.. code-block:: python

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'

| 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

Keywords

general utilities for standard library

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts