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:
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:
from google_documents.entities import GoogleDriveDocument
doc = GoogleDriveDocument.get(id="YOUR_DOCUMENT_ID")
doc.export("my_file.docx")
Installation
- Install the module via pip:
pip install google-documents
-
Issue service account file via Google Cloud Console
-
Put the path to your file in the GOOGLE_DOCUMENT_SERVICE_JSON environment varialbe:
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
File details
Details for the file google_documents-0.0.4.tar.gz.
File metadata
- Download URL: google_documents-0.0.4.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e512febdccb9cc6c818dd4ee670983e6244b15da7b90102b93913108713a380
|
|
| MD5 |
38652589fea8d007fa82601d82e69a5f
|
|
| BLAKE2b-256 |
662b8471777be46be1318784ddcd3f015019ff6876fe6fc5b44db6decba560f4
|