Skip to main content

Extracts tables from .docx files and saves them as csv or xlsx

Project description

Usage: docx2csv [OPTIONS] FILENAME

docx to csv convertor (
Extracts tables from DOCX files as CSV or XLSX.

Use command: "docx2csv convert <filename>" to run extraction. It will
create files like filename_1.csv, filename_2.csv for each table found.

--format TEXT Output format: CSV, XLSX
--singlefile TEXT Outputs single XLS file with multiple sheets: True or False
--sizefilter INTEGER Filters table by size number of rows
--help Show this message and exit.
## Examples

docx2csv --format csv --sizefilter 3 CP_CONTRACT_160166.docx

Extracts tables from file CP_CONTRACT_160166.docx with number of rows > 3 and
saves results as CSV files.

* click
* xlwt
* python-docx
* openpyxl

## Acknowledgements
Thanks to Vsevolod Oparin ( for optimized "extract_table" code

.. :changelog:


0.1.0 (2018-01-14)
* First public release on PyPI and updated github code

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for docx2csv, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size docx2csv-0.1.0-py2.py3-none-any.whl (5.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size docx2csv-0.1.0-py3.6.egg (6.0 kB) File type Egg Python version 3.6 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page