title: Cleanest way to make an ORM for neo4j + sql in python flask? One model over 2 databases
body: <p>How can I create one model that talks to two databases in Flask, where one is, say, sqlite, and the other is specifically neo4j?</p>
  
  <p>I'd like to have login and password stuff in a traditional db, and keep other graphy information in neo4j.  I'm told neo4j is bad for things that need large graph traversals.  Perhaps I'm wrong in needing this, but I have an instance where I'd like to say something like...
  "<code>return a dict(person.x,person.y,person.z) from all nodes where type==person</code>", and then feed that into the view of my index page.</p>
  
  <p>I've seen related questions about ORMs with neo4j: 
  <a href="https://stackoverflow.com/questions/8356626/orm-with-graph-databases-like-neo4j-in-python">ORM with Graph-Databases like Neo4j in Python</a></p>
  
  <p>...and this about multiple DBs in Flask: 
  <a href="http://packages.python.org/Flask-SQLAlchemy/binds.html" rel="nofollow noreferrer">http://packages.python.org/Flask-SQLAlchemy/binds.html</a></p>
  
  <p>Specifically, I see this taking the form of my create statement writing to sqlite db connection and then writing a key from there to additional relational information in neo4j.</p>