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.2.tar.gz
(94.3 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.2-py3-none-any.whl
(90.9 kB
view details)
File details
Details for the file e2w-0.1.2.tar.gz.
File metadata
- Download URL: e2w-0.1.2.tar.gz
- Upload date:
- Size: 94.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a065e4211eacd0cc433a1dd92b693fb3422577e9e777403e9a1dddea08d37b4
|
|
| MD5 |
258da066486e5c053263c4f6703c4508
|
|
| BLAKE2b-256 |
d4db8252771a719daa82749cce970868f31a080a85177db5430491001dd93b15
|
File details
Details for the file e2w-0.1.2-py3-none-any.whl.
File metadata
- Download URL: e2w-0.1.2-py3-none-any.whl
- Upload date:
- Size: 90.9 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 |
75cacbcafc015410fb483bdf62f12f932a789bfca39a65519d4e4d187f5ddf20
|
|
| MD5 |
a7a5e09115e08e734e243c4bc96bbea8
|
|
| BLAKE2b-256 |
cce6f8b2d78442291321aa6e99a62e68922db653b1a6d42a085afdee525ae8ef
|