Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chezou/cookiecutter-digdag

A template generates digdag workflows for SQL and Python
https://github.com/chezou/cookiecutter-digdag

Last synced: about 2 months ago
JSON representation

A template generates digdag workflows for SQL and Python

Awesome Lists containing this project

README

        

# Cookiecutter Digdag

A cookiecutter for digdag project, including py> operator, and td> operator.

## Requirements to use the cookiecutter template:

- Python 3.5 or later
- [Cookiecutter Python package](http://cookiecutter.readthedocs.org/en/latest/installation.html)

```sh
$ pip install --user cookiecutter
```

## To start a new project, run:

```sh
cookiecutter https://github.com/chezou/cookiecutter-digdag
```

## The output directory structure

```text
my_project
├── README.md
├── config
│   ├── params.test.yml <- Configuration file for run through test. Mirror params.yml except for `td.database`
│   └── params.yml <- Configuration file for production
├── awesome_workflow.dig <- Main workflow to be executed
├── ingest.dig <- Data ingestion workflow
├── py_scripts <- Python scripts directory
│   ├── __init__.py
│   ├── data.py <- Script to upload data to Arm Treasure Data
│   └── my_script.py <- Main script to execute e.g. Data enrichment, ML training
├── queries <- SQL directory
├── run_test.sh <- Test shell script for local run through test
└── test.dig <- Test workflow for local run through test
```