OOPyCQL
An object-oriented way to manage Cypher queries in python.
Installation
pip install oopycql
QuickStart
Load a query from a file using the same pythonic reference notation you would to load an object.
For example, let's imagine you have an application with a directory structure like the below.
src/
β-controllers/
β β-login/
β β-cql/
β β ββfind_user_password_combination.cql
β β ββcreate_login_event.cql
| ββ__init__.py
| ββviews.py
ββ__init__.py
ββapp.py
To load a query in views.py
, you could use the below:
from oopycql import CypherQuery
# relative style import
cq = CypherQuery('.cql.find_user_password')
# absolute style import
cq = CypherQuery('src.controllers.login.cql.create_login_event')
License
Apache
Author
Dom Weldon dom.weldon@gmail.com