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
Feel free to test the upcoming release of Kartograph while it is been developed. To do so I strongly recommend to use virtualenv and virtualenv-wrapper in order to avoid conflicts between different versions of Kartograph. To do so, please uninstall your current version, and re-install both in different virtual environments.
> mkdir kpy-new > git clone firstname.lastname@example.org:kartograph/kartograph.py.git -b kartograph-2 kpy-new # create and activate a new virtual environment > workon kartograph-new # install and use Kartograph (kartograph-new)> cd kpy-new (kartograph-new)> python setup.py install