I&#39;ve written a python library to generate data files used by the excellent open Flash chart 2.&nbsp;<div><br></div><div>The project page:&nbsp;<a href="http://btbytes.github.com/pyofc2/">http://btbytes.github.com/pyofc2/</a></div>
<div><br></div><div>Click on the links on the left to see the resulting charts.</div><div><br></div><div>There are a couple of advantages PyOFC2 has over the one distributed with OFC2.</div><div><br></div><div>&nbsp;1. Complete. I&#39;ve&nbsp;implemented&nbsp;python wrapper classes for all chart types and elements.</div>
<div>&nbsp;2. Pythonic. The original PHP library uses setters and getters for properties etc.,</div><div>&nbsp;3. Demo charts. Each chart type has a `test_ foo` function which shows the usage.&nbsp;</div><div>&nbsp;4. Test coverage.&nbsp;</div><div>
&nbsp;5. No dependency on any python framework. The default distribution uses Cherrypy.</div><div><br></div><div>Programming notes:</div><div>This is also the first time I used python meta classes.</div><div>The test cases are also used to generate the demo files you see on the website.&nbsp;</div>
<div>I wouldn&#39;t call it literate programming but is&nbsp;self documenting.&nbsp;</div><div><br></div><div>I&#39;ve been using this code in a django based app for over a month.&nbsp;&nbsp;</div><div><br></div><div>+PG<br></div><div><br></div>
<div>[1]&nbsp;<a href="http://teethgrinder.co.uk/open-flash-chart-2/">http://teethgrinder.co.uk/open-flash-chart-2/</a></div><div><br></div>