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.10.16.7.54.49.816969.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf5fd22e5bdd4718feb9d0684091a4b7ce637498eec63da68d27970eb18eea0b |
|
MD5 | 66fa96646f0338490740c18ea126eb7e |
|
BLAKE2b-256 | a7f384efd2e0ddb5454d337047915dd0bcc4e641668dda810e42215f0be26a75 |
Close
Hashes for qaviton_processes-2019.10.16.7.54.49.816969-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4209f7b537f04289c9f267951bd5cf6261d6fbca3fe26ad1c00e06c783fe0f41 |
|
MD5 | c1aa6f5b382d10d736304de5585a5c8e |
|
BLAKE2b-256 | 9309edbd25e5a50bd4d129823edf9ab6ca5e19f1360ee386c68c3127235bf0c6 |