# Path: sofine/plugins/plugin_base.py
# class PluginBase(object):
#     def __init__(self):
#     def get_adds_keys(self):
#     def parse_args(self, argv):
#     def get_schema(self, args=None):
#     def get_namespaced_schema(self):


from sofine.plugins import plugin_base as plugin_base
from optparse import OptionParser
import json
is the first and only element in `args`.

    // Example: 
    {"keys" : ["AAPL", "MSFT"]}
"""
        path = args[0]
        new_keys = get_keys(path)
        data = dict.fromkeys(new_keys, {})
        return data


    def parse_args(self, argv):
        """`[-p|--path]` - Path to the file listing the keys to load into this data source.
"""
        usage = """
[-p|--path] - Path to the file listing the keys to load into this data source.
"""
        parser = OptionParser(usage=usage)

        parser.add_option("-p", "--path", 
                        action="store", dest="path",
                        help="Path to the file listing the keys to load into this data source. Required.") 

        (opts, args) = parser.parse_args(argv)
    
        is_valid = True
        if not opts.path:
            print "Invalid argument error."
            print """
Your args:  

# Path: sofine/plugins/plugin_base.py
# class PluginBase(object):
#     def __init__(self):
#     def get_adds_keys(self):
#     def parse_args(self, argv):
#     def get_schema(self, args=None):
#     def get_namespaced_schema(self):


# Path: sofine/plugins/standard/file_source.py
from sofine.plugins import plugin_base as plugin_base
from optparse import OptionParser
import json

is the first and only element in `args`.

    // Example: 
    {"keys" : ["AAPL", "MSFT"]}
"""
        path = args[0]
        new_keys = get_keys(path)
        data = dict.fromkeys(new_keys, {})
        return data


    def parse_args(self, argv):
        """`[-p|--path]` - Path to the file listing the keys to load into this data source.
"""
        usage = """
[-p|--path] - Path to the file listing the keys to load into this data source.
"""
        parser = OptionParser(usage=usage)

        parser.add_option("-p", "--path", 
                        action="store", dest="path",
                        help="Path to the file listing the keys to load into this data source. Required.") 

        (opts, args) = parser.parse_args(argv)
    
        is_valid = True
        if not opts.path:
            print "Invalid argument error."
            print """
Your args:  

  path {0}""".format(opts.path)