Command-line utility for creating Dataflow projects
Project description
dataflow-cookiecutter
Tired of copy-pasting your ad-hoc Dataflow modules? Then you can use this cookiecutter command-line tool to easily generate standardized Dataflow templates! :zap:
Installation
You can install dataflow-cookiecutter
from PyPI:
pip install dataflow-cookiecutter
In addition, you can also clone this repository and install it locally:
git clone https://github.com/ljvmiranda921/dataflow-cookiecutter.git
cd dataflow-cookiecutter
python3 setup.py install
Usage
You can create a Dataflow project by executing the command:
$ dataflow-cookiecutter new
You can also use some of the premade templates. Say, you wish to create a Google Cloud Storage (GCS) to BigQuery (BQ) pipeline:
$ dataflow-cookiecuter new --template=GCSToBQ
In addition, you can use your trusty, old cookiecutter
command-line tool to
generate templates (only works for cookiecutter
>=1.7.1):
cookiecutter https://github.com/ljvmiranda921/dataflow-cookiecutter \
--directory <directory-to-desired-template>
FAQ
- Why are you still wrapping cookiecutter? This started as a learning project and I want to see how cookiecutter's internals work. In addition, I realized I can add more functionality to the CLI more than templating, so wrapping Cookiecutter seems to be a good approach.
- I already have cookiecutter, can I use it with your templates? Yes of
course! Look at the Usage section above! However, ensure that your
cookecutter version is
>=1.7.1
so that you can use the--directory
flag!
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 Distributions
Hashes for dataflow-cookiecutter-1.0.0a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa2bc4cb39ba7c5a305b92b0e88029feb0dcb3b41d29bee1c9efbe65d268af48 |
|
MD5 | 886f84d3cf30896df77e1ba6cdfb8ee9 |
|
BLAKE2b-256 | c6e19f5704339d00b0d93afe50d6a0d355b0455358bdabff4515a859fe981b6e |
Hashes for dataflow_cookiecutter-1.0.0a0-py3.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65656b2f01dd5cb1b186d883f983afa9374baab9e0f2182236bc848f13cf7e8e |
|
MD5 | 66907a004a56155ec2758a4fe4f184e7 |
|
BLAKE2b-256 | 758f68c51d1155d45ac44d217c84087d04ba7a76eb6fcb15b847c5626320adc0 |
Hashes for dataflow_cookiecutter-1.0.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30299d07d6c1f8b62028306403784234bfa05e5bfca694aa600281479db5a9ad |
|
MD5 | 8a24dd55ffe884e0559c0ff3ed9a9390 |
|
BLAKE2b-256 | 3ac5a7f705260e1b36d3903e7e2774da1b63c3f82e3882eb1564c363aa8284cc |