Running multiple assertion tests one after another.
Project description
Abhakliste
Abhakliste is a minimal task runner that prints a list of tasks and their status. It runs a collection of dependent task which can be shell commands or python functions in sequence and checks for error. Even if one task fails, it continues to run the rest of the tasks. The goal of this project is to provide a minimal task runner with a low overhead API.
⚙️ Installation
Install the project with pip
pip install abhakliste
🎨 Features
- Low Overhead Task Runner
- Visual summary of task results
- Written in pure python (no modules)
- Supports Python 3.8+
💡 Usage Examples
import subprocess
from abhakliste import Abhakliste
# set up runner
abhaker = Abhakliste()
# run code context
with abhaker.run_context(desc="Run ls"):
subprocess.check_output("ls")
# run cli command
abhaker.run_cmd("ls", desc="Run ls")
# run function
def run_ls():
subprocess.check_output("ls")
abhaker.run_func(run_ls, desc="Run ls")
# raise an error if a run failed
abhaker.raise_on_error()
📜 Documentation
For further examples on how to use the modules and a detailed API reference, see the documentation.
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
File details
Details for the file abhakliste-0.1.2.tar.gz
.
File metadata
- Download URL: abhakliste-0.1.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.8.11 Linux/5.15.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4abdd38869f13af7e1576b6f95ef9b0dfb5cd862a748c780d4c0d2b3c12c67d6 |
|
MD5 | 0150072dc8f92615766e5cde6185f4b6 |
|
BLAKE2b-256 | d4846911ccd0367f8a81c3bca8543f3b34da4b653bc5ce3c57626d87cc2b834d |
File details
Details for the file abhakliste-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: abhakliste-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.8.11 Linux/5.15.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7ed5edce2ed99ab448b399ad6c1b7edf4db92299c6228f6c05ace7e064f824f |
|
MD5 | 3a1fc182d09c6decee5fac4d30d3479a |
|
BLAKE2b-256 | b62677395f071238f9face0e7b4f522ce3253124343bd8b82f34d46824cb193a |