Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword Call NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr Call NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Num If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad ListComp TupleLoad NameLoad Call NameLoad ListLoad TupleLoad Str Call AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad ListComp TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Call AttributeLoad NameLoad attr NameLoad If CompareEq SubscriptLoad NameLoad Index Str Str body Assign SubscriptStore NameLoad Index Str Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareEq NameLoad Str Call NameLoad NameLoad NameLoad body Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Str Str body Assign SubscriptStore NameLoad Index Str Call NameLoad For NameStore NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Num If NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad ListLoad TupleLoad Str NameLoad TupleLoad Str Str TupleLoad Str NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Str Str body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Num Num If NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Num orelse If CompareEq SubscriptLoad NameLoad Index Str Str body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Num Num If NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Num orelse If CompareEq SubscriptLoad NameLoad Index Str Str body Assign SubscriptStore NameLoad Index Str NameLoad Delete SubscriptDel NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad NameLoad If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad orelse Raise Call NameLoad Call AttributeLoad Str attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Str orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Str orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword TupleLoad Str Str keyword NameLoad Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str For TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad ListComp TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Yield TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
EveGenie class for building Eve settings and schemas.
 N/A json N/A os.path N/A re types NoneType collections OrderedDict jinja2 Environment PackageLoader EveGenie N/A object N/A N/A template_env N/A Environment loader N/A PackageLoader evegenie templates N/A objectidregex N/A N/A re compile ^objectid:\s*?(.+)$ flags N/A re M N/A intrangeregex N/A N/A re compile ^(\d+)\s*?-\s*?(\d+)$ flags N/A re M N/A floatrangeregex N/A N/A re compile ^([0-9.]+)\s*?-\s*?([0-9.]+)$ flags N/A re M __init__ N/A N/A self data filename N/A None None N/A N/A 
        Initialize EveGenie object. Parses input and sets each endpoint from
        input as an attribute on the EveGenie object.

        :param data: string or dict of the json representation of our schema
        :param filename: file containing json representation of our schema
        :return:
         N/A N/A self endpoints N/A OrderedDict N/A N/A filename N/A data N/A N/A N/A N/A N/A os path isfile filename N/A N/A N/A open filename r ifile N/A N/A data N/A N/A N/A N/A ifile read strip N/A N/A N/A isinstance data N/A basestring dict OrderedDict N/A N/A N/A TypeError N/A N/A Input is not a string: {} format data N/A N/A N/A sys exit 1 N/A N/A isinstance data basestring N/A N/A data N/A N/A json loads data object_pairs_hook OrderedDict N/A N/A self endpoints N/A OrderedDict N/A N/A k N/A OrderedDict N/A N/A schema N/A N/A self parse_endpoint v N/A N/A k v N/A N/A data iteritems N/A parse_endpoint N/A N/A self endpoint_source N/A N/A N/A 
        Takes the values of an endpoint from its raw json representation and
        converts it to the eve schema equivalent.

        :param endpoint_source: dict of fields in an endpoint
        :return: dict representing eve schema for the endpoint
         N/A N/A OrderedDict N/A N/A k N/A N/A self parse_item v N/A N/A k v N/A N/A endpoint_source iteritems N/A parse_item N/A N/A self endpoint_item N/A N/A N/A 
        Recursivily takes the values of an endpoint's field from its raw
        json and convets it to the eve schema equivalent of that field.

        :param endpoint_item: dict of field within an endpoint
        :return: dict representing eve schema for field
         N/A item N/A OrderedDict N/A N/A type N/A N/A self get_type endpoint_item N/A N/A N/A item N/A type dict N/A N/A N/A item N/A schema N/A OrderedDict N/A N/A k i N/A N/A endpoint_item iteritems N/A N/A N/A N/A item N/A schema N/A k N/A N/A self parse_item i N/A N/A N/A k allow_unknown N/A isinstance i bool N/A N/A N/A item N/A schema N/A N/A item N/A type N/A N/A item N/A k i N/A N/A N/A N/A item N/A type list N/A N/A N/A item N/A schema N/A OrderedDict N/A i endpoint_item N/A N/A N/A item N/A schema N/A N/A self parse_item i N/A N/A N/A N/A item N/A type objectid N/A N/A match N/A N/A N/A N/A N/A self objectidregex match endpoint_item group 1 N/A match N/A N/A N/A item N/A data_relation N/A OrderedDict N/A N/A resource match N/A field _id N/A embeddable True N/A N/A N/A N/A item N/A type integer N/A N/A N/A isinstance endpoint_item basestring N/A N/A match N/A N/A N/A N/A N/A self intrangeregex match endpoint_item group 1 2 N/A match N/A N/A N/A item N/A min N/A int N/A match N/A 0 N/A N/A item N/A max N/A int N/A match N/A 1 N/A N/A N/A N/A item N/A type float N/A N/A N/A isinstance endpoint_item basestring N/A N/A match N/A N/A N/A N/A N/A self floatrangeregex match endpoint_item group 1 2 N/A match N/A N/A N/A item N/A min N/A float N/A match N/A 0 N/A N/A item N/A max N/A float N/A match N/A 1 N/A N/A N/A N/A item N/A type null N/A N/A N/A item N/A nullable True N/A N/A item N/A type N/A item N/A get_type N/A N/A self source N/A N/A N/A 
        Map python value types to Eve schema value types.

        :param source: value from source json field
        :return: eve schema type representing source type
         N/A type_mapper N/A unicode str bool int float dict list OrderedDict NoneType string string boolean integer float dict list dict null N/A source_type N/A type source N/A N/A source_type type_mapper N/A N/A eve_type N/A type_mapper N/A source_type N/A N/A N/A TypeError N/A N/A Value types must be in [{0}] format N/A N/A ,  join N/A N/A type_mapper values N/A N/A eve_type string N/A N/A N/A N/A N/A self objectidregex match source N/A N/A eve_type objectid N/A N/A N/A N/A N/A self intrangeregex match source N/A N/A eve_type integer N/A N/A N/A N/A N/A self floatrangeregex match source N/A N/A eve_type float N/A eve_type N/A format_endpoint N/A N/A self endpoint_schema N/A N/A N/A 
        Render endpoint schema for readability.  This adds indentation and line breaks.

        :param endpoint_schema: dict of eve schema
        :return string of eve schema ready for output
         N/A endpoint N/A N/A json dumps endpoint_schema indent 4 separators N/A , :  sort_keys False N/A updates N/A N/A " ' N/A true True N/A false False N/A N/A needle sub updates N/A N/A endpoint N/A N/A endpoint replace needle sub N/A endpoint N/A write_file N/A N/A self filename N/A N/A N/A 
        Pass schema object to template engine to be rendered for use.

        :param filename: output filename
        :return:
         N/A template N/A N/A N/A self template_env get_template settings.py.j2 N/A settings N/A N/A template render endpoints N/A OrderedDict N/A N/A endpoint N/A N/A self format_endpoint schema N/A N/A endpoint schema N/A N/A N/A self endpoints iteritems N/A N/A open filename w ofile N/A N/A N/A N/A ofile write N/A settings N/A __iter__ N/A N/A self N/A N/A N/A N/A k v N/A N/A N/A self endpoints iteritems N/A N/A N/A N/A k v N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A json dumps N/A self endpoints N/A __str__ N/A N/A self N/A N/A N/A N/A N/A json dumps N/A self endpoints indent 4 separators N/A , :  N/A __len__ N/A N/A self N/A N/A N/A N/A len N/A self endpoints N/A __getitem__ N/A N/A self k N/A N/A N/A N/A N/A self endpoints N/A k N/A __sizeof__ N/A N/A self N/A N/A N/A N/A len N/A self endpoints N/A N/A