Skip to main content

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

  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.

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

Save credentials file inside the project:

Create a folder named .Credentials and store newly downloaded credentials renaming them with service_credentials.json

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

google-api-support-0.0.9.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

google_api_support-0.0.9-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file google-api-support-0.0.9.tar.gz.

File metadata

  • Download URL: google-api-support-0.0.9.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for google-api-support-0.0.9.tar.gz
Algorithm Hash digest
SHA256 64469138747917ea2b6c4de4fbd793451fc1b603c9f438ce83bcd6241834eafb
MD5 4afc4f821f97f1092c7a6571b4c401f6
BLAKE2b-256 e310c480d542e78c85f2d3448c2d42fcff00ae2fcf433212ff7a4541a5ecd1b2

See more details on using hashes here.

File details

Details for the file google_api_support-0.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for google_api_support-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1e63fe1fa4ee278e8dd04fc4dafa7213145d0e0f5833a18e9cec83019c605905
MD5 5e16c1210f544e19492ed705345770b2
BLAKE2b-256 0c2930a2e4b4c16370a088553b51cd757594c63c19cd3d35eabaf7e89a5d69c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page