docxgen is a python library to generate Microsoft Office Word 2007 Document. Without knowing the details of the WordprocessingML, you may create a beautiful Word Document, as:
from docxgen import Document, title
doc = Document()
doc.update(
title='Moby Dick',
creator='Herman Melville',
created=datetime(...)
)
body = doc.body
body.append(title('Moby Dick'))
body.append(subtitle('Moby Dick'))
body.append(h1('Chapter 1'))
body.append(paragraph([run('Call me Ishmael. Some years ago ...')]))
doc.save('/tmp/moby-dick.docx')
This work is proudly sponsored by SurveyMonkey Inc, and licensed in MIT license.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docxgen-0.1.4.tar.gz
(23.0 kB
view details)
File details
Details for the file docxgen-0.1.4.tar.gz.
File metadata
- Download URL: docxgen-0.1.4.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6111af1abda031016aa1ec3a960005f866169f659ee0377289bc095336245578
|
|
| MD5 |
fabeafc2e405af42a2b74d66bfd3e2b2
|
|
| BLAKE2b-256 |
debb4261918ad1dc15f1b7f3619b047861a488451e08a85ab65893a9d4a9d743
|