Skip to main content

Tool for previewing multiple .docx files in a directory

Project description

docxviewer

Copyright (c) 2018-2019 Eunhou Esther Song

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.

Python Package Index

https://pypi.org/project/docxviewer/

Installation

pip3 install docxviewer

Dependencies

  • Python 3
  • Click
  • ipython
  • python-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.6.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docxviewer-0.0.6-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file docxviewer-0.0.6.tar.gz.

File metadata

  • Download URL: docxviewer-0.0.6.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for docxviewer-0.0.6.tar.gz
Algorithm Hash digest
SHA256 0c6a0c54e9700a5f767f2ea97e37ea7452ee6cd6db1d4da2a624aeee448035a1
MD5 f20f99b27ebae4e2d3df4c98f3989a76
BLAKE2b-256 9a9b60d265daf189c9866379fba7f42654ad6eb0ccf0caffa96516bc1a6bbe73

See more details on using hashes here.

File details

Details for the file docxviewer-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: docxviewer-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for docxviewer-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 59032c441fdf5474d7e2446a7c37481a012c3f06630436abfc6003d2d2e22af1
MD5 20ea87a83b20d4d06a268e56f06dd0a0
BLAKE2b-256 9a4d89881abe7cf5c2730212a22bf3db2c4cceb75a431f2935c838c4f4499ce8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page