libcypher-parser-python

Python/Cython interface for libcypher-parser


Keywords
cypher, python
License
Apache-2.0
Install
pip install libcypher-parser-python==0.0.2

Documentation

Cypher parser for Python

Build Status Coverage Status

Python interface for libcypher-parser.

Getting started

Requires libcypher-parser to be installed before compiling the extension.

Debian/Ubuntu

$ sudo add-apt-repository ppa:cleishm/neo4j
$ sudo apt-get update
$ sudo apt-get install libcypher-parser-dev

macOS

$ brew install cleishm/neo4j/libcypher-parser

For other platforms, see the official docs.

Installation

$ pip install libcypher-parser-python

To build

$ pip install Cython
$ python setup.py build_ext --inplace

A simple test

Paste the following code in your terminal.

$ python -c "from libcypher_parser import parse_statement; print(parse_statement('MATCH (n) RETURN n'))"
(True, {'n_errors': 0, 'n_nodes': 10, 'n_statements': 1})