Skip to content
heX16Public

About

Library for operation system scripting in Python

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

os_script

Library for operation system scripting in Python.

  • Run shell commands via run_command() or multi-line sh() (optionally capture output).
  • File helpers: find/list, read/write content, copy/move/remove, timestamps.
  • Process helpers (via psutil).
  • Datetime formatting/parsing and small config/text utilities.

Install

PyPI: https://pypi.org/project/os-script/

pip install os-script

Quick example

from os_script import find, run_command, sh

result = run_command('python --version', capture_output=True)
print(result.stdout.getvalue().strip())

for path in find('.', '*.py', recursively=True):
    print(path)

sh('echo hello\necho world')

About

Library for operation system scripting in Python

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages