teriyakichild/python-zcli — pull request #1 by dingus9 (2014-05-22 22:00:50+00:00)
Title: Adding basic export structure

What has changed:
---
* code formatting to comply with pep8
* split out into subparsers for more features(export/import)
* kept original functionality as method subparser
* moved rpc call to separate function to allow it to be used as a callback
* added tools.py to hold useful utils
* added class to handle returned objects from rpc calls to prep for exports, and imports
* allow for cli passing of config params as exports or --flags like --host, --user, --password(bool) as well as ZA_USER, ZA_HOST etc.
* made lots of things properties in config class for ease of use... instead of methods
* more exception handling all over
* handling exits and errors with sys.exit(1/0) and print('msg', sys.stderr)

What hasn't changed:
---
* tried to keep original rpc query syntax and helps under method sub command
* left logic the same except changed a few var names for modularity
* wasn't sure about zabbix.py so left that, looks like an early test maybe we can remove it?