No project description provided
Project description
yapx
import yapx
@dataclass
class ArgsModel:
...
parser = yapx.ArgumentParser()
parser.add_arguments(ArgsModel)
parser.print_help()
@dataclass
class CmdArgsModel:
...
parser.add_command('run-command', CmdArgsModel)
parser.print_help()
import yapx
def setup(...):
...
def run_it(...):
...
yapx.run(setup, run_it)
# or
yapx.run(setup, run_command=run_it)
# or
yapx.run(setup, **{
'run-command': run_it
})
yapx.run(setup, run_it, _print_help=True)
yapx.run(lambda value: value * 5)
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
yapx-0.0.1a1.tar.gz
(12.7 kB
view hashes)
Built Distribution
yapx-0.0.1a1-py3-none-any.whl
(14.5 kB
view hashes)