Skip to main content

Twisted Python clj-documint client implementation

Project description

=========
txdocumint
=========

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


Usage
-----

.. code-block:: python

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.

Source Distribution

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

Uploaded Source

Built Distribution

txdocumint-18.0.0-py2-none-any.whl (30.6 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page