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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qaviton_processes-2019.11.1.13.50.43.917059.tar.gz.
File metadata
- Download URL: qaviton_processes-2019.11.1.13.50.43.917059.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
715ea0336fe11454d8b08468ac496812101fb01a9aed44b2f6703cdda9b078db
|
|
| MD5 |
245fb391a6aca6fbdaac829a68af0cf7
|
|
| BLAKE2b-256 |
aa74b561bbc4d12fda9484f798bf726540e2c2ff46db41afc8b559d54d3d4ebf
|
File details
Details for the file qaviton_processes-2019.11.1.13.50.43.917059-py2.py3-none-any.whl.
File metadata
- Download URL: qaviton_processes-2019.11.1.13.50.43.917059-py2.py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a70d9c719b3ad5e7391cbb94abb0650aa2cd0d541cbd6159b3a5415b4cd6292d
|
|
| MD5 |
3502b97c849af155f50857cd6f4838bb
|
|
| BLAKE2b-256 |
31dbd4fb4c6090663694ebe7b1fae68aaddb72505c3af17139b9dc76b6e4046f
|