The dynamic Python CLI for task execution.
Project description
myke
The dynamic Python CLI for task execution.
Links | |
---|---|
Code Repo | https://www.github.com/fresh2dev/myke |
Mirror Repo | https://www.f2dv.com/code/r/myke |
Documentation | https://www.f2dv.com/code/r/myke/i |
Changelog | https://www.f2dv.com/code/r/myke/i/changelog |
License | https://www.f2dv.com/code/r/myke/i/license |
Funding | https://www.f2dv.com/funding |
Meet myke
, the dynamic Python CLI for task exection.
I built myke
to replace my personal need for make
and Makefiles. myke has probably 1% of the functionality of make, and that's a good thing.
Note:
myke
is in beta status. Please report ideas and issues here.
Install
myke is a CLI application, so I recommend installing it using pipx.
pipx install 'myke[extras]'
What's in myke[extras]
?
myke[io]
--> Libraries to read/write various file formats (yaml, toml, etc.)myke[pydantic]
--> Includes the Pydantic library to support additional types.myke[tui]
--> Includes the Trogon library to present a TUI for myke.
Use
Paste the following into a file named Mykefile
:
from myke import task
@task
def say_hello(name):
print(f"Hello {name}.")
@task
def say_goodbye(name):
print(f"Goodbye {name}.")
Invoke a task:
myke say-hello --name world
View available tasks:
myke
Read More
myke is an instantiation of the yapx
project, the CLI builder for Python. The information contained in the yapx docs also applies to myke.
Read more about myke @ https://www.f2dv.com/code/r/myke/i
Read more about yapx @ https://www.f2dv.com/code/r/yapx/i
See all of my projects @ https://www.f2dv.com/code/r
Brought to you by...
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.