Kartograph is a Python library that generates SVG maps from ESRI shapefiles. Please have a look at the API docs for more details.
Kartograph.py is licensed under AGPL
Kartograph.py is still beta, which means that there are some bugs left to fix.
> mkdir kartograph-py > git clone firstname.lastname@example.org:kartograph/kartograph.py.git kartograph-py # create and activate a new virtual environment > mkvirtualenv kartograph # install and use Kartograph (kartograph)> cd kartograph-py (kartograph)> python setup.py install
See install documentation