Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blazingdocs/blazingdocs-python
BlazingDocs Python client
https://github.com/blazingdocs/blazingdocs-python
api csv doc document-generation documents docx json mail-merge odt pdf reports templates xml
Last synced: about 1 month ago
JSON representation
BlazingDocs Python client
- Host: GitHub
- URL: https://github.com/blazingdocs/blazingdocs-python
- Owner: blazingdocs
- License: mit
- Created: 2021-08-09T14:34:19.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-07T07:56:16.000Z (about 3 years ago)
- Last Synced: 2024-10-14T09:32:36.417Z (2 months ago)
- Topics: api, csv, doc, document-generation, documents, docx, json, mail-merge, odt, pdf, reports, templates, xml
- Language: Python
- Homepage: https://blazingdocs.com
- Size: 54.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BlazingDocs Python client
High-performance document generation API. Generate documents and reports from СSV, JSON, XML with 99,9% uptime and 24/7 monitoring.## Installation
Run this line from Terminal:
```
pip install blazingdocs
```## Integration basics
### Setup
You can get your API Key at https://app.blazingdocs.com
```python
client = BlazingClient('API-KEY')
```### Getting account info
```python
account = client.get_account()
```### Getting merge templates list
```python
templates = client.get_templates()
```### Getting usage info
```python
usage = client.get_usage()
```### Executing merge
```python
client = BlazingClient('API-KEY')parameters = MergeParameters()
parameters.dataSourceType = DataSourceType.JSON # data in json format
parameters.sequence = False # data is object
parameters.strict = True # keep json typeswith open('templates/PO-Template.json', 'r', encoding='utf-8') as f:
data = f.read()with open('templates/PO-Template.docx', 'rb') as f:
file = FormFile('PO-Template.docx')
file.content = f.read()operation = client.merge_with_form_file(
data=data,
filename='output.pdf',
parameters=parameters,
template=file
)
```## Documentation
See more details here https://docs.blazingdocs.com