Module ImportFrom alias alias alias alias ImportFrom alias alias Import alias alias alias alias alias alias alias alias alias alias alias alias alias Import alias ImportFrom alias alias alias alias alias alias alias FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return Call NameLoad Call NameLoad keyword Num keyword NameLoad keyword Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Return Call NameLoad Dict Str Str Str Str Str Num NameLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Return Call NameLoad Dict Str Str Str Num NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return Call NameLoad Call NameLoad keyword Num keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Str body Expr Call AttributeLoad NameLoad attr Return Call NameLoad Call NameLoad keyword Num keyword NameLoad keyword BinOpAdd BinOpAdd Str NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num If NameLoad body Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Call NameLoad Call NameLoad keyword Num keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword ListLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Return NameLoad decorator_list
N/A flask Flask request jsonify Response flask.ext.restful Resource Api N/A psycopg2 psycopg2.extras copy json subprocess random logging io sys os StringIO uuid csv N/A helper view treeView createBranchView branchView lineView bulkView schemaView schemaRemove create_app N/A N/A N/A N/A N/A app N/A Flask __name__ N/A api N/A Api app catch_all_404s True N/A N/A N/A logging basicConfig filename exlayer.log level N/A logging DEBUG index N/A N/A N/A N/A N/A conn N/A N/A helper setConnection N/A N/A conn False N/A N/A N/A jsonify N/A dict status 400 success False message Too many connections N/A N/A N/A N/A helper layer_set_up conn N/A N/A cur N/A N/A conn cursor N/A N/A N/A N/A N/A cur execute CREATE TABLE exlayer_branches (id serial, branch_name text, tree_name text, meta json, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()) N/A N/A N/A cur execute CREATE TABLE exlayer_schema (id uuid DEFAULT uuid_generate_v1mc(), tree_name text, branch_id int, fields text, meta json, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()) N/A N/A N/A conn commit N/A N/A N/A N/A N/A jsonify N/A status success message db user 400 False Sorry, layer could not setup. Check DB settings and permissions and try again N/A N/A app config N/A DBNAME N/A N/A app config N/A DBUSER N/A N/A jsonify N/A status success message 200 True Hello. My name is Layer! N/A N/A N/A app route / create_tree N/A N/A N/A N/A N/A data N/A N/A json loads N/A request data N/A name N/A N/A data get name None N/A meta N/A N/A data get meta None N/A schema N/A N/A data get schema None N/A conn N/A N/A helper setConnection N/A N/A conn False N/A N/A N/A jsonify N/A dict status 400 success False message Too many connections N/A cur N/A N/A conn cursor N/A name N/A N/A helper valid_tree_name name N/A N/A N/A helper tree_exists conn N/A name _line N/A N/A N/A N/A conn close N/A N/A jsonify N/A dict status 400 success False message N/A N/A Cannot create tree because  name  is invalid or already in use N/A N/A N/A cur execute N/A N/A N/A CREATE TABLE  name _line  (id uuid DEFAULT uuid_generate_v1mc(), branch_id int, old_state json, new_state json, primary_key varchar(455), meta json, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()) N/A N/A N/A cur execute N/A N/A N/A CREATE TABLE  name _bulk  (id uuid DEFAULT uuid_generate_v1mc(), branch_id int, states json, lines text[], meta json, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()) N/A branch_name master N/A N/A N/A cur execute INSERT into exlayer_branches (branch_name, tree_name, meta) VALUES (%s,%s,%s) RETURNING exlayer_branches.id N/A branch_name name N/A N/A json dumps meta N/A N/A N/A conn commit N/A branch_id N/A N/A N/A cur fetchone N/A 0 N/A schema N/A N/A N/A N/A cur execute INSERT into exlayer_schema (tree_name, branch_id, fields) VALUES (%s,%s) N/A name N/A N/A N/A branch_id json dumps schema N/A N/A N/A conn commit N/A N/A N/A conn close N/A N/A jsonify N/A dict status 200 success True tree_name name meta meta schema schema branch_id branch_id N/A N/A N/A app route /create/ methods N/A POST N/A N/A N/A api add_resource N/A treeView dataTree /<tree_name>/ N/A N/A N/A api add_resource N/A lineView lineData /<tree_name>/line/<line_id>/ N/A N/A N/A api add_resource N/A bulkView bulkData /<tree_name>/bulk/<bulk_id>/ methods N/A GET DELETE N/A N/A N/A api add_resource N/A createBranchView createBranch /<tree_name>/branch/ N/A N/A N/A api add_resource N/A branchView branchData /<tree_name>/branch/<branch_identifier>/ N/A N/A N/A api add_resource N/A schemaView schemaData /<tree_name>/schema/<branch_identifier>/ N/A N/A N/A api add_resource N/A schemaRemove removeSchema /<tree_name>/schema/<branch_identifier>/<schema_id>/ methods N/A DELETE N/A N/A N/A N/A app config from_pyfile N/A N/A N/A N/A os path dirname ../config/config.py /../config/config.py N/A app N/A