WGLib is a python module that can be used to create, load, manipulate, and save WarGear maps. An overview of the classes in WGLib is given first, and then links to more detailed documentation.
The primary class in this module is the WGMap. WGMap provides basic capabilities to all WarGear maps. WGMap has many methods:
Along with lots of helper functions to make accessing and manipulating the XML easier
SquareGridWGMap extends WGMap for dealing with maps on a square grid. An sample of what this class can do:
These class are extensions of the SquareGridWGMap that are used to create specific boards. They are not documented as well because I assume they will not be as useful to other map makers, as their methods are fairly specialized. They may provide useful examples of how to accomplish more advanced manipulations of WarGear maps. They also both implement a createPNG() method which can be examined to see how PNGs for a map can be created.
Most methods are documented here, but the documentation is incomplete. If you want to see every method that is available, please see the WGLib.py source.