# Path: turbulenz_tools/tools/stdtool.py
# def simple_options(parser_fn, version, dependencies, input_required=True):
#     parser = parser_fn()
#     (options, args) = parser.parse_args()
# 
#     if options.output_version:
#         standard_output_version(version, dependencies, getattr(options, 'output', None))
#         exit(0)
# 
#     if input_required:
#         # Not all tools have an input file, so we print help for no args as well.
#         try:
#             if options.input is None:
#                 print "ERROR: no input files specified"
#                 parser.print_help()
#                 exit(1)
#         except AttributeError:
#             if len(args) == 0:
#                 print "ERROR: no input files specified"
#                 parser.print_help()
#                 exit(1)
# 
#     # Not all tools have a metrics option.
#     try:
#         metrics = options.metrics
#     except AttributeError:
#         metrics = False
# 
#     if options.silent:
#         logging.basicConfig(level=logging.CRITICAL)
#     elif options.verbose or metrics:
#         logging.basicConfig(level=logging.INFO)
#     else:
#         logging.basicConfig(level=logging.WARNING)
# 
#     return (options, args, parser)


import logging
import os
import tarfile
import simplejson as json
from optparse import OptionParser, TitledHelpFormatter
from turbulenz_tools.tools.stdtool import simple_options
#!/usr/bin/env python
# Copyright (c) 2010-2013 Turbulenz Limited




__version__ = '1.0.0'
__dependencies__ = [ ]

LOG = logging.getLogger(__name__)

class DependencyTar(object):
    def __init__(self):
        self.paths = [ ]

    def items(self):

# Path: turbulenz_tools/tools/stdtool.py
# def simple_options(parser_fn, version, dependencies, input_required=True):
#     parser = parser_fn()
#     (options, args) = parser.parse_args()
# 
#     if options.output_version:
#         standard_output_version(version, dependencies, getattr(options, 'output', None))
#         exit(0)
# 
#     if input_required:
#         # Not all tools have an input file, so we print help for no args as well.
#         try:
#             if options.input is None:
#                 print "ERROR: no input files specified"
#                 parser.print_help()
#                 exit(1)
#         except AttributeError:
#             if len(args) == 0:
#                 print "ERROR: no input files specified"
#                 parser.print_help()
#                 exit(1)
# 
#     # Not all tools have a metrics option.
#     try:
#         metrics = options.metrics
#     except AttributeError:
#         metrics = False
# 
#     if options.silent:
#         logging.basicConfig(level=logging.CRITICAL)
#     elif options.verbose or metrics:
#         logging.basicConfig(level=logging.INFO)
#     else:
#         logging.basicConfig(level=logging.WARNING)
# 
#     return (options, args, parser)


# Path: turbulenz_tools/tools/json2tar.py
import logging
import os
import tarfile
import simplejson as json
from optparse import OptionParser, TitledHelpFormatter
from turbulenz_tools.tools.stdtool import simple_options

#!/usr/bin/env python
# Copyright (c) 2010-2013 Turbulenz Limited




__version__ = '1.0.0'
__dependencies__ = [ ]

LOG = logging.getLogger(__name__)

class DependencyTar(object):
    def __init__(self):
        self.paths = [ ]

    def items(self):

        return self.paths