DEV Community

MoRoth
MoRoth

Posted on

Easy Py tasks from CMD with Invoke

I'm usually using Makefile to do automation within my project.

Invoke is a simple tool to make command line mapping to python code.
You write python tasks/functions and the Invoke library maps to shell commands and arguments.

http://www.pyinvoke.org

you create tasks.py file in the top directory where you run your project and your command with the library models very easily.

a good tutorial is on youtube https://www.youtube.com/watch?v=fqS2TBcxoeA

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay