Skip to main content

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

GitHub release (latest SemVer) GitHub Release Date License GitHub issues GitHub pull requests GitHub Repo stars PyPI - Downloads Docker Pulls Docs Website Coverage Website 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


Download files

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

Source Distribution

myke-0.1.0.tar.gz (70.3 kB view hashes)

Uploaded Source

Built Distribution

myke-0.1.0-py3-none-any.whl (63.1 kB view hashes)

Uploaded Python 3

Supported by

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