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.
Source Distribution
txdocumint-18.0.1.tar.gz
(41.9 kB
view hashes)
Built Distribution
Close
Hashes for txdocumint-18.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92ef8ba80b922e1b90a9d8d69bdfcdd790ca376266c9381444a07f0b5224a67c |
|
MD5 | 887b611a99904d8d06fc8b0a400ed8f2 |
|
BLAKE2b-256 | 94db679a442b8f4e70115a8a73405ab20e1b8f861aaec40040b80eec0d95c9dc |