"luqum" (as in LUcene QUery Manipolator) is a tool to parse queries written in the Lucene Query DSL and build an abstract syntax tree to inspect, analyze or otherwise manipulate search queries.
Compatible with Python 3.3 & 3.4.
pip install luqum
PLY==3.8