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.config — GoogleConfig 环境配置(服务账号凭据)
  • 各业务域 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

Metadata

Release files for yuppie-google-sheets 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yuppie-google-sheets 0.3.0
File Size Uploaded Provenance Actions
yuppie_google_sheets-0.3.0.tar.gz 14.5 kB Without provenance Details for yuppie_google_sheets-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yuppie-google-sheets 0.3.0
File Interpreter ABI Platform Actions
yuppie_google_sheets-0.3.0-py3-none-any.whl Python 3 none any Details for yuppie_google_sheets-0.3.0-py3-none-any.whl

Total release size: 34.8 kB

Release files / yuppie_google_sheets-0.3.0.tar.gz

Download URL yuppie_google_sheets-0.3.0.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a8c71bff19d54a35f6e560156372f06658e0681a2ae6364ef1be6c3c5d14ab78
BLAKE2b-256 checksum
How to use checksums
299ce74fa62481a6f615402e40b87e006a283546be5383672d254531220fc4c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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}

Release files / yuppie_google_sheets-0.3.0-py3-none-any.whl

Download URL yuppie_google_sheets-0.3.0-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eaeec7765eefb0642c8a7d79a1335ec72ee4dc7fa405727f80c421ac28524c7b
BLAKE2b-256 checksum
How to use checksums
74f2cddd72d7ee88324dc8fc9960e13452400a27bf55eb6ecd61739438e15dce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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}

Security for yuppie-google-sheets 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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