Support exporting template with HTML tag to Word file
Project description
E2W project
Export template HTML tag to Word
Sample to use
context = {
"tag_name1": "Value name1",
"tag_name2": "Customer X",
"api_headers": { "Content-Type":"application/json", "Authorization":"Bearer ***" },
"apis": {
"https://api.example.com/products": {
"params": { "id": 123, "code": "PR0D01" }
},
"https://api.example.com/summary": {
"params": {"order_id": 10, "token": "xyAf0xdDAv23" }
}
}
}
e2w = ExportToWord(
context=context,
template="templates/sample.template",
output_path= f"{datetime.now().strftime('%Y%m%d-%H%M%S')}-output.docx"
)
e2w.render()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
e2w-0.1.1.tar.gz
(9.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
e2w-0.1.1-py3-none-any.whl
(9.8 kB
view details)
File details
Details for the file e2w-0.1.1.tar.gz.
File metadata
- Download URL: e2w-0.1.1.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a67ef99f99a33e1fd978b5dcfcdc5fd43001b9e3f593bdf63bc30a645a2e6309
|
|
| MD5 |
72595196a9e78203061a1f79fdf647b4
|
|
| BLAKE2b-256 |
0e52be758903c06ef578dfc5982dd5942dda174c6e4c2f418bb9635f51a77bff
|
File details
Details for the file e2w-0.1.1-py3-none-any.whl.
File metadata
- Download URL: e2w-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af3b7426d2cc8c417beea0449d97f72f8d848b8063b4a870968b2c3e7c54eaf2
|
|
| MD5 |
5818fe6abc590c277804a53b544968ad
|
|
| BLAKE2b-256 |
04abbec0e5fd1d0eac5907cbe18f88073090a2a1bdfd4ea57f6e849a7ac3476b
|