Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Twisted Python clj-documint client implementation

Project description

Twisted Python client for clj-documint <>.


from StringIO import StringIO
# inlineCallbacks affords the opportunity to be concise.
from twisted.internet.defer import inlineCallbacks, returnValue
from txdocumint import actions, create_session

def render_some_html(html_string):
    session = yield create_session(DOCUMINT_ENDPOINT_URI)
    html_uri = yield session.store_content(StringIO(html_string), 'text/plain')
    pdf_uri = yield session.perform_action(actions.render_html(html_uri))


See <> for details.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for txdocumint, version 18.0.1
Filename, size File type Python version Upload date Hashes
Filename, size txdocumint-18.0.1-py2-none-any.whl (30.7 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size txdocumint-18.0.1.tar.gz (41.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page