The generation of parse.py is as easy as: /path/to/grako Wkt.ebnf -o parse.py

parsewkt is continually tested with Travis CI

Implementation Status

Currently implemented is parsing from WKT to a __geo_interface__ compliant
dictionary for the following types:

POINT

LINESTRING

POLYGON

MULTIPOINT

MULTILINESTRING

MULTIPOLYGON

GEOMETRYCOLLECTION

The parser can parse the following types but they are currently not
translated into python objects:

COMPOUNDCURVE

CIRCULARSTRING

CURVEPOLYGON

MULTICURVE

POLYHEDRALSURFACE

TIN

TRIANGLE

Rationale

The parser was written to have a clean and complete parser for WKT.
Other WKT to python parsers use regular expression to do the same and are
more or less complete.
I wanted to have a reference implementation that could handle any kind
of valid WKT that you throw at it. You can also use it as a reference
if you want to write your own parser with grako.