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.3.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.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gsheet_api_handler-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 b336f62752543bd1320c49f03dde8a46d365992468c775284f51b35116ead993
MD5 10f2b90642e0006ee669b6d92c72eb2c
BLAKE2b-256 91663dab4c91fed17688f7e5cae0aeb0d25fb6bae0b45dbd7184e4c955882e5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gsheet_api_handler-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c70936580b946a30216d680ee6b313f1c43f6df7e3c6bd519d62f3225701337a
MD5 6c52767a1267d61aa9440b68f0c19e93
BLAKE2b-256 4f58fa3f6ad92ce972c26bf4d8c0dfb5aae87ad58f164e457080a1a32eedfe14

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