twisted python clj documint客户端实现

txdocumint的Python项目详细描述


twisted python客户端,用于clj documint<;https://github.com/fusionapp/clj documint>;

用法

fromStringIOimportStringIO# inlineCallbacks affords the opportunity to be concise.fromtwisted.internet.deferimportinlineCallbacks,returnValuefromtxdocumintimportactions,create_session@inlineCallbacksdefrender_some_html(html_string):session=yieldcreate_session(DOCUMINT_ENDPOINT_URI)html_uri=yieldsession.store_content(StringIO(html_string),'text/plain')pdf_uri=yieldsession.perform_action(actions.render_html(html_uri))returnValue(pdf_uri)

贡献

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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
如何在java中调用Paint组件方法   多层次POM中的java覆盖依赖项/插件管理   java模式识别   JavaSpringMVC+Log4j2定义了Log4j2。未标识非类路径位置中的属性文件   java我们如何将IntelliJ IDEA中的maven和gradle项目与源代码浏览支持集成?   Maven mvn exec:java在Windows上工作,但不是Ubuntu 20   java在Jaxb2Marshaller上使用带有packagesToScan属性的JAXBElement时没有端点适配器   java删除方法和节点   java如何为某些场景创建正则表达式模式   java如何通过gridView中的intent()传递ArrayList数据。setOnItemClickListener()   java UnsupportedClassVersionError 1.7/1.5   java为什么JVM参数是http。tomcat servlet没有使用proxyHost?   java将ArrayList从字母顺序排序到最频繁/最不频繁   java动态字段列表迭代   java如何将字节转换为位?   hadoop java。mapreduce作业中的lang.NullPointerException   javasocketIO无法与Android中的LocationListener一起使用   java在卸载时清除内部存储   java池回收错误2个精灵同时碰撞到一个精灵