I've written a python library to generate data files used by the excellent open Flash chart 2. <div><br></div><div>The project page: <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> 1. Complete. I've implemented python wrapper classes for all chart types and elements.</div>
<div> 2. Pythonic. The original PHP library uses setters and getters for properties etc.,</div><div> 3. Demo charts. Each chart type has a `test_ foo` function which shows the usage. </div><div> 4. Test coverage. </div><div>
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. </div>
<div>I wouldn't call it literate programming but is self documenting. </div><div><br></div><div>I've been using this code in a django based app for over a month. </div><div><br></div><div>+PG<br></div><div><br></div>
<div>[1] <a href="http://teethgrinder.co.uk/open-flash-chart-2/">http://teethgrinder.co.uk/open-flash-chart-2/</a></div><div><br></div>