Creation and manipulation of Open XML documents (mainly docx).
Project description
Overview
Creation and manipulation of Open XML documents (mainly docx).
Free software: MIT license
Features
This library allow you to:
Convert Open XML documents into flat OPC format.
Installation
pip install docx-utils
Using the library
Using the library to convert an Open XML document into flat OPC format:
>>> from docx_utils.flatten import opc_to_flat_opc
>>> opc_to_flat_opc("sample.docx", "sample.xml")
Command Line Interface (CLI)
Printing the online help:
$ docx_utils --help
Usage: docx_utils [OPTIONS] COMMAND [ARGS]...
Docx utilities
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
flatten Convert an Open XML document into flat OPC format.
Converting an Open XML document into flat OPC format:
$ docx_utils flatten sample.docx sample.xml
Converting 'sample.docx' to flat XML...
Conversion done: 'sample.xml'.
Documentation
Development
To run the all tests run:
tox
Changelog
v0.1.2 (2018-07-26)
Fixed
Drop support for PyPy: it seams that lxml is not available for this Python implementation.
Drop support for Python 3.7: this Python version is not yet available on all platform. However, it is known to work on Ubuntu with the python-3.7-dev release.
Other
Use the pseudo-tags start-exclude/end-exclude in CHANGELOG.rst and README.rst to exclude text from the generated PKG-INFO during setup.
v0.1.1 (2018-07-25)
Fixed
Fix wheel version on PyPi.
v0.1.1 (2018-07-24)
Added
First release.
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 Distributions
Built Distribution
Hashes for docx_utils-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b26927f10c31e7551c8c2a01d709102b21122951d8f80800264ea2e1507ad5a7 |
|
MD5 | d6df41ec2687b0f8ba8d44e52808aeb9 |
|
BLAKE2b-256 | 70bee513d6f70b029ed89697f2e6aa21b881a830c845a70392d403eac4276ac1 |