Skip to main content

Paquete para la autenticación y lectura de datos desde Google Sheets con manejo de errores integrado pensado para Google Colab.

Project description

Google sheet API handler

gsheet_api_handler es un paquete de Python diseñado para facilitar la autenticación y la lectura de datos desde Google Sheets. Incluye un mecanismo robusto de manejo de errores con reintentos exponenciales para asegurar la confiabilidad en la recuperación de datos pensando para el uso en el entorno de google colab.

Características

  • Autenticación en Google Sheets: Utiliza las credenciales de Google para autenticar y acceder a hojas de cálculo.
  • Lectura de Datos: Extrae los datos de una hoja específica de Google Sheets en formato de lista.
  • Manejo de Errores: Implementa un sistema de reintentos exponenciales para manejar errores temporales de manera efectiva cuando la cantidad de requests realizadas supera la cuota.

Instalación

Para instalar gsheet_api_handler, puedes utilizar pip. Abre una terminal y ejecuta el siguiente comando:

pip install gsheet_api_handler

Uso

from my_package import google_sheet_reader, backoff_retry

# URL del Google Sheet y nombre de la hoja
url = "https://docs.google.com/spreadsheets/d/your_spreadsheet_id"
sheet_name = "Sheet1"

sheet_data = gs_api.backoff_retry(lambda: gs_api.google_sheet_reader(url, sheet_name))
print(sheet_data)

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

gsheet_api_handler-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

gsheet_api_handler-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file gsheet_api_handler-0.1.0.tar.gz.

File metadata

  • Download URL: gsheet_api_handler-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.9

File hashes

Hashes for gsheet_api_handler-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ade6c11389202d8ee4ba684c150670347ee628544f09d39d7761f9261e35e27c
MD5 efea4975fc4e8fb01f2f7a9c05a88446
BLAKE2b-256 e8a6ef5d833176f2b798e66a90f66a319652cc026d94c8db8c4f2ae8d5e1ae67

See more details on using hashes here.

File details

Details for the file gsheet_api_handler-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gsheet_api_handler-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2834f6233b3e8cb08d364bbd4a97f1179a3e8c59058839e0dab5b63699ed2093
MD5 0edc5f8545ffa4dd287bf8ce53a4a65b
BLAKE2b-256 1996306b7c6b52d7dfd0f4e89c23363b90454b9aef659b36fa12fdea01e6115c

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