Quantcast
Channel: CodeSection,代码区,Python开发技术文章_教程 - CodeSec
Viewing all articles
Browse latest Browse all 9596

Python Command-line skeleton

$
0
0

Writing a command-line interface (CLI) is an easy way to extend the functionality and ease of use of any code you write.

python comes with the built-in module, argparse , that can be used to easily develop command-line interfaces. To speed up the process, I have developed a ‘skeleton’ application that can be forked on github and used to quickly develop CLI programs in python.

The repo has the following features added:

Testing with travis-ci and py.test Coverage analysis using coveralls A setup file that will install the command a simple argparse interface

To get started, you should signup for an account on travis-ci and coveralls , and fork the repo!

python-cli-skeleton on Github


Viewing all articles
Browse latest Browse all 9596

Trending Articles