Skip to main content

BlazingDocs Python 客户端

项目描述

BlazingDocs Python 客户端

高性能文档生成 API。从 СSV、JSON、XML 生成文档和报告,正常运行时间为 99.9%,24/7 监控。

安装

从终端运行这一行:

pip install blazingdocs

集成基础知识

设置

您可以在https://app.blazingdocs.com获取您的 API 密钥

client = BlazingClient('API-KEY')

获取账户信息

account = client.get_account()

获取合并模板列表

templates = client.get_templates()

获取使用信息

usage = client.get_usage()

执行合并

client = BlazingClient('API-KEY')
参数 =  MergeParameters ()

使用 open ( 'templates/PO-Template.json' ,  'r' ,  encoding = 'utf-8' ) 作为 f : 
    data  =  f ()

打开 ( ' templates /PO-Template.docx' , 'rb' 作为f : file = FormFile ( 'PO-Template.docx' ) file 内容= f ()   
      
      

操作 = 客户merge_with_form_file 
    数据=数据
    文件名= 'output.pdf' 
    参数=参数
    模板=文件

文档

在此处查看更多详细信息https://docs.blazingdocs.com

项目详情


下载文件

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

源分布

blazingdocs-1.0.1.tar.gz (5.7 kB 查看哈希)

已上传 source

内置分布

blazingdocs-1.0.1-py3-none-any.whl (6.8 kB 查看哈希

已上传 py3