In this package you will find functions to deal with google apis. Sheets, Drive, Storage and Slides
Project description
google-api-support
Some functions to make Google APIs more usable.
Functions avaliable
- Sheets
- Get pandas.dataframe from Sheets
- Upload pandas.dataframe to Sheets
- Retrieve sheet names
- Add sheets to a spreadsheet
- Create new spreadsheet
- Slides
- Create presentation
- Get presentation info
- Get presentation slides
- Get slide notes
- Replace text
- Replace shape with image
- Replace image
- Get slide notes
- Batch replace text
- Batch replace shapes with images
- Insert image
- Duplicate object
- Delete object
- Batch delete object
- Delete text
- Batch delete text
- Delete presentation notes
- Transform object
- Drive
- Get file name
- Move file
- Delete file
- Copy file
- Upload image
- Create folder
- List folders in folder
- Get folder id by name
- Get folder id by path
- Download file
Install
'''pip install google-api-support'''
You might need to install manually:
'''pip install google-api-python-client httplib2 oauth2client pandas'''
Steps to use google Sheets API
In order to use Google APIs you will need to authenticate, this steps guide you through the process:
- Create a project in console.developers.google.com
https://console.developers.google.com
-
Create google service account. 0. Go to https://console.developers.google.com/projectselector/apis/credentials and create a new project.
-
Create credentials.
- In this first version, i will explain how to deal with Services accounts, so select "Service account key".
-
Create a service account.
- Download the .json file and KEEP IT SAFE.
-
Now you have your service account created inside your new project.
-
Copy your "user id" in "Manage service accounts" to use it later.
- It looks like this one: "first-service-account@example-id-175820.iam.gserviceaccount.com"
-
Go to your dashboard screen and go to "ENABLE APIS AND SERVICES" to "unlock" the desired API calls. In our example, we will just enable "Google sheets API".
-
Save credentials file inside the project:
Create a folder named .Credentials and store newly downloaded credentials renaming them with service_credentials.json
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file google-api-support-0.0.14.tar.gz.
File metadata
- Download URL: google-api-support-0.0.14.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8d64e699028e202aceff9f32bf00183d0855e1c8dc610a48003ea94e1bf8e04
|
|
| MD5 |
46b2c3953267613cfe882a1e2b140a1d
|
|
| BLAKE2b-256 |
7db77ded66a94aa0c382f72f1687ee5b2a32867fb97687b789bbec3c536e1466
|
File details
Details for the file google_api_support-0.0.14-py3-none-any.whl.
File metadata
- Download URL: google_api_support-0.0.14-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
197bba3ed1a396fabbd44c254b56529c19be0421a4fea99d9feb695b18e3162f
|
|
| MD5 |
bd30e6be9f439a0b97cf081300959977
|
|
| BLAKE2b-256 |
c3d0c2b5bd3354fb7eb6f9995f10d77b14010f19d63a79e4ddc753079b19c7e7
|