English:
Google Sheets Utils Module
The module provides convenient utilities for working with Google Sheets. Features include establishing a connection to the Google Sheets API, reading data from a sheet, and uploading a DataFrame to Google Sheets with retry support.
Installation
bashCopy codepip install gs-update-utils
Usage
Establishing a Connection
pythonCopy codefrom gs-update-utils import setup_google_sheets
credentials_folder = "path/to/credentials"
credentials_file = "credentials.json"
google_credentials = setup_google_sheets(credentials_folder, credentials_file)
Reading Data from a Sheet
pythonCopy codefrom gs-update-utils import read_gs_table
worksheet_id = "your_worksheet_id"
worksheet_name = "your_worksheet_name"
dataframe = read_gs_table(worksheet_id, worksheet_name, google_credentials)
Uploading DataFrame to Google Sheets
pythonCopy codefrom gs-update-utils import upload_table_to_google_sheet
worksheet_id = "your_worksheet_id"
worksheet_name = "your_worksheet_name"
upload_table_to_google_sheet(dataframe, worksheet_id, worksheet_name, google_credentials)
Русский:
Модуль Google Sheets Utils
Модуль предоставляет удобные утилиты для работы с Google Sheets. Возможности включают установку соединения с API Google Sheets, чтение данных из листа и загрузку DataFrame в Google Sheets с поддержкой повторных попыток.
Установка
bashCopy codepip install gs-update-utils
Использование
Установка соединения
pythonCopy codefrom gs-update-utils import setup_google_sheets
credentials_folder = "path/to/credentials"
credentials_file = "credentials.json"
google_credentials = setup_google_sheets(credentials_folder, credentials_file)
Чтение данных из листа
pythonCopy codefrom gs-update-utils import read_gs_table
worksheet_id = "your_worksheet_id"
worksheet_name = "your_worksheet_name"
dataframe = read_gs_table(worksheet_id, worksheet_name, google_credentials)
Загрузка DataFrame в Google Sheets
pythonCopy codefrom gs-update-utils import upload_table_to_google_sheet
worksheet_id = "your_worksheet_id"
worksheet_name = "your_worksheet_name"
upload_table_to_google_sheet(dataframe, worksheet_id, worksheet_name, google_credentials)
Metadata
Release files for gs-update-utils 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gs_update_utils-1.0.4.tar.gz | 5.3 kB | Without provenance | Details for gs_update_utils-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gs_update_utils-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for gs_update_utils-1.0.4-py3-none-any.whl |
Total release size: 10.8 kB
Release files / gs_update_utils-1.0.4.tar.gz
| Download URL | gs_update_utils-1.0.4.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eba710c330d8a8c0048c408439f5bfa3191230cac0856b422272f89e56c5a13d
|
|
BLAKE2b-256 checksum How to use checksums |
e6d77e5ff2553d94d22719902de65436b185244a869100ad456ceeb520b62450
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / gs_update_utils-1.0.4-py3-none-any.whl
| Download URL | gs_update_utils-1.0.4-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
853f74574ccca9b2aecbee247c38f95c28ec22dbf3bd5c9931fb8b0cb933220c
|
|
BLAKE2b-256 checksum How to use checksums |
e4fd8b4f6a7ef48083d7c40c9bb3f5a8d5cbf4f1af340578b08651c3dd2a74d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for gs-update-utils 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.