Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
36 lines (24 loc) · 833 Bytes

File metadata and controls

36 lines (24 loc) · 833 Bytes

CLI template for Python

This is template app for CLI test.
You can make console application by editing app/app.py

This uses argparse module.. See detail in argparse document.

How to get input parameters

app.py has a function main

def main(args, options):

All parameters are passed as args array

If you want to use option parameter, you can use parser.add_argument for your own option in cli.py

How to output result

You can use print method

  print(v)

How to install external libraries

If you want to use external libraries, please do following

  • Write library name and version in requirements.txt
  • Add following section to codecheck.yml
build:
  - pip3 install -r requirements.txt