Skip to main content

Twisted Python clj-documint client implementation

Project description

Twisted Python client for clj-documint <https://github.com/fusionapp/clj-documint>.

Usage

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

@inlineCallbacks
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))
    returnValue(pdf_uri)

Contribute

See <https://github.com/fusionapp/txdocumint> 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 & hash File type Python version Upload date
txdocumint-18.0.1-py2-none-any.whl (30.7 kB) View hashes Wheel py2
txdocumint-18.0.1.tar.gz (41.9 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page