Skip to main content

No project description provided

Project description

Hagi

CLI manager inpired by invoke, with type hints and asyncio.

Basic Example:

Create a =tasks.py= file with content:

import sys
from  hagi import task, Context

@task
async def hello(c: Context):
	  "hello to you"
	  print('hello')
	  await c.exec('whoami', hide=False)

Then run in shell in the same directory:

lindsay@Reisen> hagi
Usage:
 hagi [Command]

Available Commands:
 hello               hello to you

Flags:
 -h  --help          	
lindsay@Reisen> hagi hello
hello
lindsay

More Details

https://io.lin.moe/n/prjs/hagi.html

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

hagi-0.0.4-py3-none-any.whl (21.2 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