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.0.tar.gz (4.1 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.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smartspread-1.0.0.tar.gz
  • Upload date:
  • Size: 4.1 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.0.tar.gz
Algorithm Hash digest
SHA256 d3cf7a5714c8d1b65d4a0daea3a87b4771c9a43701758846d55fd004ad0d2b88
MD5 5356c3cb576ed3f6aa789fb2dc961432
BLAKE2b-256 7f4d1ce533bbe6037b570a14e6298b4451e1c25d1c0c752f7557dd77ef332ba2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: smartspread-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbc8a223a6099bf6051b2664d7b836260e048764e49d9b72fd96dbd93a8c778d
MD5 41b76ef9f3ad56a9d70dbc603980f88a
BLAKE2b-256 7773e41f354ce6b9f5c9870728b15a5767e9510064b7293d538a2187db5a06f3

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