Skip to main content

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.

Source Distribution

txdocumint-18.0.1.tar.gz (41.9 kB view hashes)

Uploaded source

Built Distribution

txdocumint-18.0.1-py2-none-any.whl (30.7 kB view hashes)

Uploaded py2

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page