Skip to main content

yuppie-google-sheets

Google Sheets & Drive 客户端库(基于服务账号 + gspread),无 MCP 依赖

yuppie-mcp-google-sheets 仓库拆出的纯 Python 库:如果你只想在自己的项目里操作 Google Sheets / Drive,不想引入 MCP 及其版本约束,直接用这个包。

安装

uv add yuppie-google-sheets        # 或 pip install yuppie-google-sheets

快速开始

from yuppie_google_sheets.config import GoogleConfig
from yuppie_google_sheets import GoogleSheetsClient

config = GoogleConfig.from_env()  # 读 GOOGLE_CREDENTIALS_B64 环境变量(base64 编码的服务账号 JSON)
client = GoogleSheetsClient(config)

spreadsheet = client.open_spreadsheet("<spreadsheet_id>")
client.update_values(spreadsheet, "Sheet1!A1", [["hello", "world"]])

模块结构

  • yuppie_google_sheets — 包根直接暴露 GoogleSheetsClient(mixin 聚合)与 GoogleConfig
  • yuppie_google_sheets.configGoogleConfig 环境配置(服务账号凭据)
  • 各业务域 mixin 平铺在包根:工作表 CRUD、数据读写/批量写入/Visualization API SQL 查询、筛选器/数据验证/行高/表格(Table)、快捷批量操作、Drive 文件列表
  • 无 pydantic 依赖(deps 仅 gspread/google-auth/google-api-python-client/requests/python-dotenv)

与 MCP Server 的关系

同一仓库的 packages/yuppie-mcp-google-sheets 是本库的 MCP 壳(把 tools 注册为 MCP 工具),PyPI 分发(uvx yuppie-mcp-google-sheets),依赖本包。两者版本独立演进。

依赖

Python ≥ 3.10;python-dotenv、gspread、google-auth、google-api-python-client、requests

Download files

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

Source Distribution

yuppie_google_sheets-0.2.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

yuppie_google_sheets-0.2.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file yuppie_google_sheets-0.2.0.tar.gz.

File metadata

  • Download URL: yuppie_google_sheets-0.2.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for yuppie_google_sheets-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d3e1fef6e0cf9e898a00b08be4af9c36b30b0c25e581e1403a75d93fb77f12df
MD5 a1b8e2f05b1213e813ed4d2e0ffafd04
BLAKE2b-256 82efa5ce8463e3ff83ef7aa3cfc2aea8280e43535706dcb671fc94e9daf5746d

See more details on using hashes here.

File details

Details for the file yuppie_google_sheets-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: yuppie_google_sheets-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for yuppie_google_sheets-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e4ffb4b9dfbc641df87de5458ff7729408b58be645462e9bbc31b4c60b69dd4
MD5 68007efc48d17f99bd495df40bda6cac
BLAKE2b-256 d5258b11ded22527ba4c47a8d051343c9bd51f11dcb018d5b1f8b4539eac9634

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page