Python package to work with Google Documents
Project description
# Google Documents
Work with Google Documents simply without any boring stuff regarding Credentials Account etc.
Read from the Google Sheet just in 3 lines:
`python from google_documents.entities import GoogleDriveSpreadsheet sh = GoogleDriveSpreadsheet.get(id="YOUR_SPREADSHEET_ID") sh.read(range_name="Sheet 1!A1:B4") `
Export Google Document to word in 3 lines as well:
`python from google_documents.entities import GoogleDriveDocument doc = GoogleDriveDocument.get(id="YOUR_DOCUMENT_ID") doc.export("my_file.docx") `
## Installation
Install the module via pip:
`bash pip install google-documents `
Issue service account file via [Google Cloud Console](https://console.cloud.google.com/)
Put the path to your file in the GOOGLE_DOCUMENT_SERVICE_JSON environment varialbe:
`bash export GOOGLE_DOCUMENT_SERVICE_JSON=PATH_TO_YOUR_SERVICE_ACCOUNT_FILE `
That’s it. Now you can start using this package
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
Hashes for google_documents-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9082887bb9bda136f8184d68ea21946e2a2e6c6660448228d5d67f4bb7c35f37 |
|
MD5 | 0765ec74680f68af7c9f4abcc7766a10 |
|
BLAKE2b-256 | 267db73d3392815a1ac2c184dfb79a680c714b8bde552a7f49b4810cc4c2c1b6 |