Skip to main content

google-api-support

Some functions to make Google APIs more usable.

Install

pip install google-api-support

Contribute

The contributions are encouraged so the library can keep growing and help more people.

You can also create an issue in order to point other contributors to desired functionalities.

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
  • Storage

    • Upload a file to google storage and get its URL

Steps to use google Sheets API

In order to use Google APIs you will need to authenticate, this steps guide you through the process:

  1. Create a project in console.developers.google.com

https://console.developers.google.com

  1. Create google service account. 0. Go to https://console.developers.google.com/projectselector/apis/credentials and create a new project. Create a developers project

    1. Create credentials.

      • In this first version, i will explain how to deal with Services accounts, so select "Service account key".
    2. Create a service account.

      • Download the .json file and KEEP IT SAFE.
    3. Now you have your service account created inside your new project.

    4. 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
    5. 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".

Check the specific credentials documentation file

Credentials documentation

Manually install dependencies

pip install httplib2 oauth2client pandas google-api-python-client google.auth.transport.requests google.oauth2.credentials google_auth_oauthlib.flow

Complete first use example

Example using virtualenv in bash terminal

virtualenv venv pip install google-api-support pip install jupyterlab source venv/Scripts/activate export GOOGLE_APPLICATION_CREDENTIALS=C:/path/to/my/service_account_credentials.json jupyter lab

Setup to developement

virtualenv venv pip install . pip install jupyterlab source venv/Scripts/activate export GOOGLE_APPLICATION_CREDENTIALS=C:/path/to/my/service_account_credentials.json jupyter lab

Release files for google-api-support 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for google-api-support 0.1.8
File Size Uploaded
google_api_support-0.1.8.tar.gz 15.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for google-api-support 0.1.8
File Interpreter ABI Platform
google_api_support-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 35.6 kB

Release files / google_api_support-0.1.8.tar.gz

Download URL google_api_support-0.1.8.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b5e243165b4d08a2d87e8680e45ce11cd57dd2e346b9b5418a843ee06338bda3
BLAKE2b-256 checksum
How to use checksums
8b8f170dd9dbc141aa7045ff06ae769ccf1b6c492597c76a84ed97eb7406554d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release files / google_api_support-0.1.8-py3-none-any.whl

Download URL google_api_support-0.1.8-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
daba50861b42ccaa422c677885922cb0c7a8eb524a9c793e1d1833092d8cc26d
BLAKE2b-256 checksum
How to use checksums
674f2f0f5b405ba777b9fc8854f748332c2a5eb9d88b10fa56499b3502588fa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.14

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page