Skip to main content

A simple Python package which provides supplementary helper methods for gspread.

Project description

gspread_helpers

PyPI Download Workflow Python Version

Overview

A simple Python package which provides supplementary helper methods for gspread.

Features

  • gspread_helpers.RangeName method for automatically generating dynamic range names, e.g. "A1:R455"

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.12.tar.gz (3.6 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.12-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gspread_helpers-0.0.12.tar.gz
  • Upload date:
  • Size: 3.6 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.12.tar.gz
Algorithm Hash digest
SHA256 52220a745f761563670bebba1fc53461abae0d7950d2461d8bd1db5e5f6c321c
MD5 93b6c664a05dca06e7fdb5d1e4e17437
BLAKE2b-256 1317df59a0a31280e83834a28d6a3f8b5905fcd3f2984ab64cb8cdab96ff0a15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gspread_helpers-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 80ae24dcaf1322e0b6e18c1db882e598b0651ff8b02d5f41f214f0c8bdde569e
MD5 7eea2395c898c216cf38e11ce1230355
BLAKE2b-256 c11fdff29f9c05b47a6baa699f71ce749735d3770105470ad0b0e3573ab30a06

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