项目作者: 1o0ko

项目描述 :
Typed docopt
高级语言: Python
项目地址: git://github.com/1o0ko/TypeOpt.git
创建时间: 2017-02-20T19:15:39Z
项目社区:https://github.com/1o0ko/TypeOpt

开源协议:MIT License

下载


typeopt

Typed version of docopt thanks to metaclasses. To be used in Machine Learning experiments.

  1. """
  2. Usage: example.py PATH [options]
  3. Arguments:
  4. PATH path to example file
  5. Options:
  6. -l, --limit=<int> Limit on the number of parsed lines
  7. --some-flag Some boolean flag
  8. --float-option=<float> Optionally change value to something other
  9. float [default: 0.2]
  10. --api-key=<str> API KEY to your SaaS provider
  11. """
  12. from typeopt import Arguments
  13. if __name__ == '__main__':
  14. arguments = Arguments(__doc__, version='example 0.2')
  15. print(arguments)

Sample usage can be found in my repository with short, self-contained tensorflow examples.