Skip to main content

Lib para recuperar informações de planilhas do Google Spreadsheets

Project description

Objetivo

Lib para recuperar informações de planilhas do Google Spreadsheets através de API

Utilização

  1. Habilitar a API do Google Spreadsheets no console do GCP > APIs & Services > Libraries > Google Sheets API > Enable

  2. Criar uma key no console do GCP para autenticação na API através de IAM & Admin > Service Accounts > Create Key 2.1. Baixar o arquivo no formato JSON e armazenar em uma das pastas do projeto

  3. Instanciar a classe Sheets, informando 2 parâmetros:

    keyPath: Caminho e nome do arquivo que contém a chave de acesso para a API do Google Sheets Exemplo: 'credentials/project-0456d0f0cd6a.json'

    spreadsheetId: Id da planilha que será consultada Exemplo: '1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms'

  4. Executar o método getRangeData, passando como parâmetro o range de células que deseja recuperar.

    Exemplo: res = getRangeData('Class Data!A2:E')

Requisitos

Instalar as libs abaixo:

pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib pip install oauth2client

Manutenção

Após executar o clone deste código, executar o comando abaixo, para baixar todas as dependências:

make install

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

sdsheets-1.0.3.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

sdsheets-1.0.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file sdsheets-1.0.3.tar.gz.

File metadata

  • Download URL: sdsheets-1.0.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for sdsheets-1.0.3.tar.gz
Algorithm Hash digest
SHA256 f3eca925c077bdd3a934766799a9d9d66d9c9fc461d31546e72c1032af69100c
MD5 2926aa612478721857b78b51d9a6622f
BLAKE2b-256 702cae1fea9e5d3997a7c3a06f5dc4228e165f9780141763c4cf92632fa8b45f

See more details on using hashes here.

File details

Details for the file sdsheets-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: sdsheets-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for sdsheets-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 39b6d4eff61f8dd41630c004d5a0ffead48c22ba73ecf7312abb9298f8a814d2
MD5 ef5efc79a36c366f7670b4f5673d5a62
BLAKE2b-256 24234ea1519cb6f99dfc09e1aa3caad82a18eb13f92a74c7f5b7f0b8037fe9ab

See more details on using hashes here.

Supported by

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