Binary package “python-ptk” in ubuntu bionic

parser for Python 2 with support for asynchronous input

 PTK implements LR(1) parsing in Python. Compared to compiled tools
 like Bison, it attempts to spare programmer's time. Python sources
 describe both the grammar and the callbacks, avoiding code
 generation. Various inputs are accepted: Python 3 asynchronous
 streams, PyZipFile archives, Twisted Deferred objects.
 .
 This package installs the library for Python 2.