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.

Source Distribution

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

Uploaded Source

Built Distribution

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

Uploaded Python 2

File details

Details for the file txdocumint-18.0.1.tar.gz.

File metadata

  • Download URL: txdocumint-18.0.1.tar.gz
  • Upload date:
  • Size: 41.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for txdocumint-18.0.1.tar.gz
Algorithm Hash digest
SHA256 db415414f69fac4c967a886dfc069370876a4f48e9a0be22b459860d65dc2276
MD5 1fd9fd7dcafc828e9d719fa3d37f56f1
BLAKE2b-256 408c2169f80358c9d6381f228fc7d06bc3483fecbe1410d607ed1b4374ac0a7e

See more details on using hashes here.

File details

Details for the file txdocumint-18.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for txdocumint-18.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 92ef8ba80b922e1b90a9d8d69bdfcdd790ca376266c9381444a07f0b5224a67c
MD5 887b611a99904d8d06fc8b0a400ed8f2
BLAKE2b-256 94db679a442b8f4e70115a8a73405ab20e1b8f861aaec40040b80eec0d95c9dc

See more details on using hashes here.

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