PyXB (“pixbee”) is a pure Python package that generates Python source code for classes that correspond to data structures defined by XMLSchema.

PyXB (“pixbee”) is a pure Python package that generates Python source code for classes that correspond to data structures defined by XMLSchema.

Docs: https://pabigot.github.io/pyxb/
Development repository: https://github.com/pabigot/pyxb

On Apr 11, 2018 the author announced End-Of-Life.

There is a little bit more update fork at https://github.com/jonfoster/pyxb. See also actively developing alternative generateDS.