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

code-check/cli-template-python3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Applications with Python3

Here's how to build your codecheck challenge solution as a CLI application.

Requirements

  • Python3 (For the version see our docs .)
  • The standard library's argparse module

Recieve Inputs

In app/app.py is a function called main. Build your console application there.

def main(args, options):
  for arg in args:
    # Replace below line with your code.
    result = arg

All stdin input arguments are passed into args as an array.

If you want to use optional arguments, add them using argparse's parser.add_argument in cli.py

Output Results

Use the standard print() method to output results to stdout.

  print(result)

Install External Libraries

If you want to use external libraries, do the following:

build:
  - pip3 install -r requirements.txt

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors