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

code-check/cli-template-python3

Repository files navigation

Command line application template for Python3.x

Implement CLI application by editing main.py.
You may add new files to keep your code clean, if it is allowed in your challenge.

How to get input parameters

In main.py, there is a function called main, which gives command line arguments as argv.

def main(argv):
    # code to run

argv passed here is came from index.py, which passes sys.argv to main function. Script name information is excluded in argv of main method.

How to output result

You can 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:

  • Write the library name and version in requirements.txt
  • Example:
    numpy==1.11.0
    requests==2.12.4
    

Releases

No releases published

Packages

No packages published