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.
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 details)
Built Distribution
File details
Details for the file txdocumint-18.0.0.tar.gz
.
File metadata
- Download URL: txdocumint-18.0.0.tar.gz
- Upload date:
- Size: 41.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4e6b41848df867292fa21d9a365c82b21bf7366f02d9551ccf2179a2f4f53ff |
|
MD5 | 73c662776df2a0c90071378b816503fa |
|
BLAKE2b-256 | 7b4e33a5ea8c903b66be7560d80b4a8a1921ac7a416ff527425284dd7532056a |
File details
Details for the file txdocumint-18.0.0-py2-none-any.whl
.
File metadata
- Download URL: txdocumint-18.0.0-py2-none-any.whl
- Upload date:
- Size: 30.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a8b13d624decb582b04f382cc3fd57cc47235e808474520c1fcf75e2da303d3 |
|
MD5 | 750f0ef096b6464be4997bbb23e3b5f8 |
|
BLAKE2b-256 | 46868a4af1f4dc313165f1df1248b0b058bfca3abd0aeccd71a8d634fb128b82 |