Tim Hatch

Weblog | Photos | Projects | Panoramas | About

Downloads

git clone http://timhatch.com/projects/siafoo-api/siafoo-api.git

Example

>>> from siafoo import convert_html_to_rst
>>> convert_html_to_rst('<p>Hello, <a href="http://example.com/">world</a></p>')
u'Hello, `world `_\n\n'
>>> convert_html_to_rst('<p>Para</p>\n<pre><code>def x(): pass</code></pre>')
u'Para\n\n.. code:: python\n\n def x(): pass\n\n'
>>> [x for x in language_ids() if "Perl" in x[0]]
[(u'Perl', 58)]