A simple Python package which provides supplementary helper methods for gspread.
Project description
Overview
A simple Python package which provides supplementary helper methods for gspread.
Presently, this package includes a single function for generating range names for updating worksheets in Google Sheets, e.g. 'A1:41209'. In the future, however, the intention is that additional methods will also be introduced.
Installation
$ pip install gspread-helpers
Directory
gspread_helpers
├── __init__.py
└── range_name
├── __init__.py
├── exceptions.py
├── range_name.py
└── validations.py
Usage
The row limit for range names in Microsoft Excel is, by default, 1,048,576. Below, we override that limitation using the override_col_limit argument set to True and by setting source equal to 'excel'.
from gspread_helpers import RangeName
rn = RangeName(
rows=2, cols=1_048_580, override_col_limit=True, source="excel"
)
However, we could have also updated the EXCEL_ROW_LIMIT constant instead.
from gspread_helpers import EXCEL_ROW_LIMIT
EXCEL_ROW_LIMIT = 1_048_580
rn = RangeName(rows=2, cols=1_048_580, source="excel")
Modulating the header_rows_size argument looks like this.
rn = RangeName(rows=2, cols=2, header_rows_size=2)
Contributing
Please refer to contributing.md for step by step instructions for contributing to this project and understanding the coding standards before opening a pull request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gspread_helpers-0.0.4.tar.gz.
File metadata
- Download URL: gspread_helpers-0.0.4.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.12.6 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d2216b9377fcae6523b096a10eed05f6ab8512a352878b786ec354c9688d02e
|
|
| MD5 |
7a3e417023ab2c60496597a0566af3e1
|
|
| BLAKE2b-256 |
ecf7651892f08ee7e3f9695a84e538e20cd4b0f68a5c9e168ea584a0f35e8de5
|
File details
Details for the file gspread_helpers-0.0.4-py3-none-any.whl.
File metadata
- Download URL: gspread_helpers-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.12.6 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64b4b90a2f73cf0573a742a4ccb3a3998da8739b4f71af79ffdd7e69cb9f6edf
|
|
| MD5 |
5a7dd22ca1bbddefc3ab5d1dc5904853
|
|
| BLAKE2b-256 |
ac4e9256b457dc4ddae19404be19243454d346ee970c406695fd8fa8fbfaac12
|