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.dev4.tar.gz
(12.7 kB
view hashes)
Built Distribution
Close
Hashes for yapx-0.0.1a1.dev4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71feaf63d0346b1cff60ac5743906f5b145307dd0f3e0b5c725640bd8dbd688a |
|
MD5 | 08b93b408950b1d074840bef554574c4 |
|
BLAKE2b-256 | d75b43e864349a7884dfc8c7a035e9704e2eb5f62f28f70a005dc781fef05fbd |