def dumps(ob, hex=False, **kw):
    writer = geos.WKBWriter(geos.lgeos, **kw)
    if hex:
        return writer.write_hex(ob)
    else:
        return writer.write(ob)
Dump a WKB representation of a geometry to a byte string, or a
dataset/ETHPy150Open Toblerity/Shapely/shapely/wkb.py/dumps