Run lightweight local workflows
Project description
Dyngle
Run lightweight local workflows
Dyngle is a simple workflow runner that executes sequences of commands defined in configuration files. It's like a lightweight combination of Make and a task runner, designed for automating common development and operational tasks.
Basic usage
Create a configuration file (e.g., .dyngle.yml) with your workflows:
dyngle:
operations:
build:
- python -m pip install -e .
- python -m pytest
deploy:
- docker build -t myapp .
- docker push myapp
clean:
- rm -rf __pycache__
- rm -rf .pytest_cache
Run an operation:
dyngle run build
Configuration
Dyngle reads configuration from YAML files. You can specify the config file location using:
--configcommand line optionDYNGLE_CONFIGenvironment variable.dyngle.ymlin current directory~/.dyngle.ymlin home directory
Workflow structure
Each operation is defined as a list of tasks under dyngle.operations. Tasks are executed sequentially using Python's subprocess module for security.
Example with multiple operations:
dyngle:
operations:
test:
- python -m unittest discover
- python -m coverage report
docs:
- sphinx-build docs docs/_build
- open docs/_build/index.html
setup:
- python -m venv venv
- source venv/bin/activate
- pip install -r requirements.txt
Security
Commands are executed using Python's subprocess.run() with arguments split in a shell-like fashion. The shell is not used, which reduces the likelihood of shell injection attacks. However, note that Dyngle is not robust to malicious configuration.
Quick installation (MacOS)
brew install python@3.11
python3.11 -m pip install pipx
pipx install dyngle
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 dyngle-0.3.0.tar.gz.
File metadata
- Download URL: dyngle-0.3.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9649703096acb9eaf2b49f4e8801d53d797b059f3fe7cc79448dc62ed31d9d8
|
|
| MD5 |
41d016b51ac62eba4c8cf73fadd228c4
|
|
| BLAKE2b-256 |
4668944d018e8720bfd5c3fcc06261f6c1e6b86fb9f52d1695db4329720804f7
|
File details
Details for the file dyngle-0.3.0-py3-none-any.whl.
File metadata
- Download URL: dyngle-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db26731c869f0e0a39850505e08ec9c520368ae7fb2681fe95ca385130406fc6
|
|
| MD5 |
1ebf108a7b5e87c9d576217ded9cf953
|
|
| BLAKE2b-256 |
68a2c55d863f66c8972e7153576ec9e6aeb7f6a9528bea7c58587d1389212991
|