djangosnippets.org: Latest snippets posted by vsergeyevhttps://djangosnippets.org/users/vsergeyev/2010-02-22T13:42:21.656787-06:00vsergeyevPython Google Translate AJAX module
2010-02-22T13:42:21.656787-06:00vsergeyevhttps://djangosnippets.org/snippets/1934/<p>Based on http://code.google.com/p/py-gtranslate/</p>
<p>Removed YAML dependency and list of languages.
Instead it use 2-symbol codes for languages.</p>
Freely redistributablepyText2Pdf - Python script to convert plain text into PDF file. Modified to work with streams.
2009-11-04T08:08:44.076934-06:00vsergeyevhttps://djangosnippets.org/snippets/1778/<p>This is "pyText2Pdf" - Python script to convert plain text into PDF file.
Originally written by Anand B Pillai.
It is taken from http://code.activestate.com/recipes/189858/</p>
<p>Modified to work with streams.</p>
<p>Example: produce PDF document from text and output it as HTTPResponse object.</p>
<pre><code>import StringIO
input_stream = StringIO.StringIO(text)
result = StringIO.StringIO()
pdfclass …</code></pre>
Freely redistributable