SDXF is a Python library to generate DXF files. DXF is an abbreviation of Data Exchange File, a vector graphics file format. It is supported by virtually all CAD products (such as AutoCAD, 3Dstudio, Blender, Maya,Vectorworks...) and vector drawing programs (such as Illustrator, Flash, ...).
SDXF can generate complex CAD drawings (dxf format) with all kind of entities (such as 3DFace, Arc, Insert, Circle, Line, Mtext, Point, Polyline, Rectangle (can be filled), Solid & Text). They can be structured with Layers, Blocks, Linetypes, Text styles and Views.
For more info: http://dxf.stani.be http://jonschull.blogspot.com/2008/12/kellbot-sdxf-python-library-for-dxf.html
NOTE: This exists because of defun. http://pypi.python.org/pypi/SDXFpypi.python.org/pypi/SDXF