Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

e2w-0.1.2-py3-none-any.whl (90.9 kB view details)

Uploaded Python 3

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

Hashes for e2w-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8a065e4211eacd0cc433a1dd92b693fb3422577e9e777403e9a1dddea08d37b4
MD5 258da066486e5c053263c4f6703c4508
BLAKE2b-256 d4db8252771a719daa82749cce970868f31a080a85177db5430491001dd93b15

See more details on using hashes here.

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

Hashes for e2w-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 75cacbcafc015410fb483bdf62f12f932a789bfca39a65519d4e4d187f5ddf20
MD5 a7a5e09115e08e734e243c4bc96bbea8
BLAKE2b-256 cce6f8b2d78442291321aa6e99a62e68922db653b1a6d42a085afdee525ae8ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page