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
Note, to combine the coverage data from all the tox environments run:
Windows |
set PYTEST_ADDOPTS=--cov-append tox |
---|---|
Other |
PYTEST_ADDOPTS=--cov-append tox |
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
v0.1.0 (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.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 683d44355b4ae3848042675d9ec21255ed0f955264554d20b7b1d54cc981d692 |
|
MD5 | fb16e76bc4fa73db9cde899e345b56b1 |
|
BLAKE2b-256 | 60df8e01e3204408b1da2fbe0705301db93439b48b7a8383e53e2f347cefcbb0 |