6. py2neo.cypher.writing – Cypher Write Utilities

py2neo.cypher.writing.cypher_escape(identifier, **kwargs)[source]

Escape a Cypher identifier in backticks.

>>> cypher_escape("simple_identifier")
'simple_identifier'
>>> cypher_escape("identifier with spaces")
'`identifier with spaces`'
>>> cypher_escape("identifier with `backticks`")
'`identifier with ``backticks```'
Parameters:identifier – any non-empty string
py2neo.cypher.writing.cypher_repr(value, **kwargs)[source]

Return the Cypher representation of a value.

py2neo.cypher.writing.cypher_str(value, **kwargs)[source]

Convert a Cypher value to a Python Unicode string.