Skip to main content

Template

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., config.yml) with your workflows:

dyngle:
  flows:
    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 a workflow:

dyngle --config config.yml run build

Configuration

Dyngle reads configuration from YAML files. You can specify the config file location using:

  • --config command line option
  • DYNGLE_CONFIG environment variable
  • .dyngle.yml in current directory
  • ~/.dyngle.yml in home directory

Workflow structure

Each workflow (called a "flow") is defined as a list of tasks under dyngle.flows. Tasks are executed sequentially using Python's subprocess module for security.

Example with multiple flows:

dyngle:
  flows:
    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 by spaces. The shell is not used, preventing shell injection attacks.

Quick installation (MacOS)

brew install python@3.11
python3.11 -m pip install pipx
pipx install kwark

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dyngle-0.1.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dyngle-0.1.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file dyngle-0.1.1.tar.gz.

File metadata

  • Download URL: dyngle-0.1.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for dyngle-0.1.1.tar.gz
Algorithm Hash digest
SHA256 aa2b2957cb2e9150f62c33bb5b87c5c01742e2ba657ac7e94ab31da4c8165093
MD5 f4895b11b8aa81c41ff72156a67f2d2b
BLAKE2b-256 8eba83ca63527f1671eee2f1436c6fcba18c9a2e730301c45d4f1d6518574c3d

See more details on using hashes here.

File details

Details for the file dyngle-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dyngle-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for dyngle-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f0cfc961bcb41acc12a47b91f8f53859daef68cef39a78bacd6f7a1067014f4
MD5 bd9fd794d5001f3be80a4227c6bfc059
BLAKE2b-256 40f5ee78dfc0516c22d0c3ae70b7628b4f1f80ae99677dbec62407b6c03d2021

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page