Skip to main content

Download Google documents to files

Project description

PyPI package Documentation Test results Test coverage Code analysis License Analytics

gdoc_down

API and command line program to save Google documents to local files in several formats: * HTML (.html) * LaTeX (.tex) * Open document format (.odt) * Plain text (.txt) * Portable document format (.pdf) * Rich text format (.rtf) * Word documents (.docx)

The software has several special features for handling LaTeX files: * The program ignores all images. This allows the user to place images inside the Google document for convenience and to use to embed images in compile PDF files. * The program will convert all Google document comments to PDF comments. * The program ignores all page breaks.

The first time the program is called, the program will request access to the user’s Google account. This will create a client.json file in the users home directory (~/.gdoc_down/client.json).

Installation

pip install gdoc_down

Command line usage

usage: gdoc_down (sub-commands ...) [options ...] {arguments ...}

Download Google documents to local files in various formats

positional arguments:
  gdoc_file             path to Google document

optional arguments:
  -h, --help            show this help message and exit
  --debug               toggle debug output
  --quiet               suppress all output
  --format FORMAT, -f FORMAT
                        output format (docx, html, odft, pdf, rtf, tex, txt)
  --out_path OUT_PATH, -o OUT_PATH
                        path where Google document should be downloaded
  --extension EXTENSION, -e EXTENSION
                        output extension

Documentation

Please see the documentation at Read the Docs.

Tests

nose can be used to run the tests:

nosetests tests

Please note that several additional packages are required for testing (see tests/requirements.txt).

License

The example model is released under the MIT license.

Development team

gdoc_down was developed by Jonathan Karr at the Icahn School of Medicine at Mount Sinai in New York, USA.

Questions and comments

Please contact the Jonathan Karr with any questions or comments.

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

gdoc_down-0.0.6.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

gdoc_down-0.0.6-py2.py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 2 Python 3

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