跳转到主要内容

Twisted Python clj-documint客户端实现

项目描述

Twisted Python客户端用于 clj-documint <https://github.com/fusionapp/clj-documint>

用法

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)

贡献

有关详细信息,请参阅 <https://github.com/fusionapp/txdocumint>。

项目详情


下载文件

为您的平台下载文件。如果您不确定选择哪个,请了解有关 安装软件包 的更多信息。

源分布

txdocumint-18.0.1.tar.gz (41.9 kB 查看哈希值)

上传时间:

构建分布

txdocumint-18.0.1-py2-none-any.whl (30.7 kB 查看哈希值)

上传于 Python 2

支持