Skip to main content

A Python library that extends gspread for enhanced spreadsheet manipulation.

Project description

SmartSpread

SmartSpread is a Python library that extends the functionality of gspread for enhanced spreadsheet manipulation, enabling easier integration with Google Sheets.

Features

  • Simplified spreadsheet creation and access.
  • Easy tab (worksheet) management.
  • Supports data handling with Pandas DataFrames, lists, and dictionaries.
  • Batch updates and row-level modifications.
  • Cached properties for optimized performance.

Installation

pip install smartspread

Requirements

  • Python 3.7+
  • gspread
  • pandas
  • cacherator
  • logorator

Usage

from smartspread import SmartSpread

# Initialize
spread = SmartSpread(sheet_identifier="MySheet", key_file="path/to/google_service_account_keyfile.json")

# Write data
data = [["Name", "Age"], ["Alice", 30], ["Bob", 25]]
spread.write_to_tab(data, tab_name="Sheet1", overwrite_tab=True)

# Read data
df = spread.tab_to_df("Sheet1")
print(df)

License

This project is licensed under the MIT License.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Author

Arved Klöhn - Redundando

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

smartspread-1.0.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

smartspread-1.0.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file smartspread-1.0.1.tar.gz.

File metadata

  • Download URL: smartspread-1.0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for smartspread-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dd6085a01336da9da5ef520eb0c6e869f2a566540f8577fa4d59a14931bac92c
MD5 aab05a46f6d72503f30f8258bdcb9c4f
BLAKE2b-256 e0f0ebf1b93c1a844218c5a491c8ec7d2d0074b840dc99bc6ba369fcc30b2f52

See more details on using hashes here.

File details

Details for the file smartspread-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: smartspread-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for smartspread-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b2ad88260b31249e9a5676aa5110ed3469ce00a43f757a50f267c62fcb46c97
MD5 f0d528e27c6c6e1ee1f17a2fff1402d3
BLAKE2b-256 c39284c7e235ac5ab309ad2875a96cd6ea5e5b48c771ed59afceb7c63e27498f

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