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.3.tar.gz
(97.5 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.3-py3-none-any.whl
(94.2 kB
view details)
File details
Details for the file e2w-0.1.3.tar.gz.
File metadata
- Download URL: e2w-0.1.3.tar.gz
- Upload date:
- Size: 97.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8ab78c497be365286bf73facfed2490a8e71bff584027881cbfa4a1c5094e85
|
|
| MD5 |
d3e306b29e7d7cd485c279ef735f08ad
|
|
| BLAKE2b-256 |
8ab3786730feaf0ef7e0a0f4d763bea7824650ba09526c79f46e4a013764b4c5
|
File details
Details for the file e2w-0.1.3-py3-none-any.whl.
File metadata
- Download URL: e2w-0.1.3-py3-none-any.whl
- Upload date:
- Size: 94.2 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 |
cb7c42dba2ee5aef2e6b5459b5808fe372f6296ed89639c6059e19e8873381cd
|
|
| MD5 |
d28ad48d38860eba714397abd9f28bba
|
|
| BLAKE2b-256 |
97dede71fe4ba8a13e80e43e8d8515d41b6018b06209253fcd25f331f220fdaa
|