Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gspread_helpers-0.0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

gspread_helpers-0.0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file gspread_helpers-0.0.1.tar.gz.

File metadata

  • Download URL: gspread_helpers-0.0.1.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

Hashes for gspread_helpers-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ef4d3dd8965a08258ae29dab1f5cecacb16aa74cf92526ce6baaddd09991b171
MD5 c797d60051d4abec4bdf69a4fea00081
BLAKE2b-256 26f69e9ceff05d457fc25a85437d2415fddaaa34cc929ab75b10077aa4ef15aa

See more details on using hashes here.

File details

Details for the file gspread_helpers-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: gspread_helpers-0.0.1-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

Hashes for gspread_helpers-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6fd0d008b3b5cf4de1d62944d062b80f98dfac54dacff96b8a63791ae86709d
MD5 d3980e6a7b6c45ef6abed54a54bdcdd1
BLAKE2b-256 6a64c06db3299dae1797a93a0d98e42862a7c6d02581f485d2a2f1db6badc8d0

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