Skip to main content

A library to generate Microsoft Office Word 2007 documents.

Project description

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.

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

docxgen-0.1.3.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

docxgen-0.1.3.macosx-10.8-intel.exe (87.1 kB view details)

Uploaded Source

File details

Details for the file docxgen-0.1.3.tar.gz.

File metadata

  • Download URL: docxgen-0.1.3.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for docxgen-0.1.3.tar.gz
Algorithm Hash digest
SHA256 684f5cb149cac9112c09000fbacdeae2fedddec1fe7a86e9a360133d247a86ec
MD5 dcaaf0f50590a872b80056ed842b902c
BLAKE2b-256 084b08acab3581a9bc75e5f77c1692f4c939ab85d4c06ee574a39471f2ccb826

See more details on using hashes here.

File details

Details for the file docxgen-0.1.3.macosx-10.8-intel.exe.

File metadata

File hashes

Hashes for docxgen-0.1.3.macosx-10.8-intel.exe
Algorithm Hash digest
SHA256 da36855ce3987b18a5cc9294772490483182f060e911ffa3e51ee1eb1bc6ac55
MD5 cf496d03051a7f43ffdfe79e0615beab
BLAKE2b-256 847ec9f1c64227630ce45d43c1780c5326903c7726ddd368286944feb0fe34da

See more details on using hashes here.

Supported by

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