Skip to main content

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.2.tar.gz (2.6 kB view hashes)

Uploaded source

Built Distribution

docxviewer-0.0.2-py3-none-any.whl (4.2 kB view hashes)

Uploaded py3

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