Download Google documents to files
Project description
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
Built Distribution
File details
Details for the file gdoc_down-0.0.6.tar.gz
.
File metadata
- Download URL: gdoc_down-0.0.6.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 974a56d84ad0675dacefa3a3a6c17cfc38a6ba54a62a005d02eb1c21a87b71ec |
|
MD5 | 264497694655fb36636e2b8856cac855 |
|
BLAKE2b-256 | 51cfefd5244f5dc90fce0a05163e7794649130780f27d2b1d01f6ec384904359 |
File details
Details for the file gdoc_down-0.0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: gdoc_down-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cdf391ca1856aff0caaf5621fade1dbc6ea516f3a37fa28ddf79f4a2152b9a1 |
|
MD5 | b2dab1db0be59541dc02483f7b0f2e37 |
|
BLAKE2b-256 | d3db046e4727a42e787bd97ae1733dd7a882b778e0f11aa8335da7184d904527 |