qaviton help functions to make things simple
Project description
Qaviton Processes
simple python wrappers for different processes
Installation
pip install --upgrade qaviton_processes
Requirements
- Python 3.6+
Features
- programmatic support for automating different processes ✓
- system cli wrapper ✓
- async support ✓
- pip wrappers ✓
- git wrappers ✓
- python wrappers ✓
- pytest wrappers ✓
Usages
from qaviton_processes.system import (
run,
pip,
git,
escape,
python,
python_code,
pytest,
run_async,
pytest_async,
python_async,
python_code_async,
)
stdout: bytes = run(f"echo \"{escape(input('say hi:'))}\"")
process = run_async("cd proj && touch jig.txt")
while process.poll() is None:
...
print(process.stdout, process.stderr)
git('clone {url}.git')
pip('install', 'qaviton_processes', '-U')
python('script.py')
python_code('import os', 'if os.path.exist("proj"+os.sep+"jig.txt"):', ' print("awsome!")')
python_async('-m scripts.monitor', 'log=log.txt')
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for qaviton_processes-2019.9.29.8.54.31.533440.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25a49623dc9e7c225d4c9997e8f078659ec04a56dc14c87ddcf9268b9c7c6ec5 |
|
MD5 | e8f4b77a676167a5cddcd8b3a6918dc1 |
|
BLAKE2b-256 | c6c7f117eb2dc282b42d624179974d83051200ab43d3f3d01e66df1ee2ade1fc |
Close
Hashes for qaviton_processes-2019.9.29.8.54.31.533440-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b85cac189fc94d26d709e935b6e68b5fac3bc14db940f4d563fe6a08662342da |
|
MD5 | 88f90ac4b2f610e1542b2224f409c723 |
|
BLAKE2b-256 | 0f030de728326dfef45229a075c4e98611ae438ef4504bec55cd903f19f68495 |