Skip to content

Commit

Permalink
add utility function to convert node data to a camelCase dict
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeddy committed Oct 16, 2019
1 parent 926033d commit 9b5bee4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions synprov/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ def _convert_relationship(neo4j_rel):
}


def node_to_dict(neo4j_node):
return convert_keys(dict(neo4j_node))


def is_open(ip, port):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
Expand Down

0 comments on commit 9b5bee4

Please sign in to comment.