Custom Actions for argparse Documentation

Custom Actions for argparse

Documentation

Release 0.4

Hai Vu

October 26, 2015

Contents

1

Introduction

1

2

Information

2.1 Folder Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.2 IP Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2.3 Dictionary Action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3

3

3

4

3

Examples

3.1 Extending the Custom Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3.2 More Ideas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5

5

6

4

Samples

4.1 extend_action.py . . . .

4.2 folder_exists.py . . . . .

4.3 proper_ip.py . . . . . .

4.4 dict_action_example.py

7

7

7

7

7

5

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Indices and tables

9

Python Module Index

11

i

ii

CHAPTER 1

Introduction

The package argparse_actions provides a number of custom actions for use with the argparse module.

1

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download