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 gsheet_api_handler 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 = backoff_retry(lambda: 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.2.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.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gsheet_api_handler-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 500b46f8ea54bfe0ac29d80c822ea6f6f0d1c682d1a178c5133d3ebfc785059d
MD5 8b0a69cb8228efb96e7f5d4cf052fe7b
BLAKE2b-256 1e64749a8ccd9fbad77ff31e009b3e5b2cde2aff92910b2a91c94ac402ce4283

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gsheet_api_handler-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4bf3d7a8e6a85e18059cf8e26cf2b57093901f66f586711a4a24e096ba7ef839
MD5 0a0049b2a2f9561f785c0badc854664c
BLAKE2b-256 49d8fd88e0a19dbd68df014cdcd720888591aa5dce99f20082372e9ce791fc00

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