Traits CLI Documentation - Read the Docs

[Pages:27]Traits CLI Documentation

Release 0.1.0 Takafumi Arakaki

March 22, 2013

CONTENTS

1 Links

3

2 Installation

5

3 Dependencies

7

4 Sample

9

5 CLI base class

11

6 Utility functions

19

7 Change log

21

7.1 v0.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

Python Module Index

23

i

ii

Traits CLI Documentation, Release 0.1.0

Traits CLI is based on Enthought's Traits library.

Some benefits:

? Automatically set type (int/float/...) of command line argument.

? Help string generation.

? "Deep value"" configuration:

e.g., --dict['a']['b']['c']=1 is equivalent to

obj.dict['a']['b']['c'] = 1 in Python code.

? Nested class configuration: e.g., --sub.attr=val is equivalent to obj.sub.attr = val in Python code.

? Parameter file support (ini/conf, json, yaml, etc.). Load parameter from file then set attribute.

CONTENTS

1

Traits CLI Documentation, Release 0.1.0

2

CONTENTS

? Documentaions (at Read the Docs) ? Source code repository (at GitHub) ? Issue tracker (at GitHub) ? PyPI ? Travis CI

CHAPTER

ONE

LINKS

3

Traits CLI Documentation, Release 0.1.0

4

Chapter 1. Links

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

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

Google Online Preview   Download