Tool for previewing multiple .docx files in a directory
Project description
docxviewer
This is a simple document previewer which allows users to preview multiple .docx documents at once. The options and flags include number of paragraphs to preview and number of documents to preview in a directory. The output prints the file name and paragraphs in each .docx file.
Dependencies
- Python 3
- Click
- ipython
- docx
Command Line Options
- –help: see help page
- –see: raise flag to view the name of all .docx files in a directory
- –p_num: set number of paragraphs to preview, the default is 3
- –select: set number of documents to preview, the default is 3
- –all: raise flag to display preview of all documents in a directory
Examples
Displays names of all .docx files in a directory
docxviewer --see
Displays the first three paragraphs of three documents in a directory, selected by alaphabetical order.
docxviewer
Displays the first three paragraphs of all documents in a directory.
docxviewer --all
Displays the first six paragraphs of five documents in a directory.
docxviewer --p_num 6 --select 5
Output
>>docxviewer
125syllabus18fal.docx
现代中国小说选读
Chinese through Modern Fiction
MWF 12:30pm -1:20pm
FieldTrip01Overview(2018-10-13)-v02.docx
Urban Studies 20
LOGISTICAL SUMMARY
for
ch4.docx
Memo on Data and Prelim Analysis
Data Collection
Background
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
docxviewer-0.0.4.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for docxviewer-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6b2012910e1f867d0679527ecc92788e6fa51d126e9cd50c825ec3c38559ee4 |
|
MD5 | 8af111a74b4a732906ec730d7862a229 |
|
BLAKE2b-256 | af339716b2089494c6006d76897b7a300ff2c8752dc4c88f2d777a304f975629 |