Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

googlechatai

googlechatai is a polyglot Google Chat AI SDK for building serious Google Chat apps, AI assistants, and workflow extensions without living at the raw REST-object layer. This is the Python package (standard library only, Python 3.10+); a matching Node.js package is published as googlechatai on npm, kept behaviorally aligned through shared fixtures and cross-language conformance tests.

Highlights:

  • Deep normalization of Chat events, messages, actions, cards, and attachments into stable, model-ready structures.
  • A webhook router with slash command, mention, reaction, membership, and dialog handlers, plus dedupe, deadline, and inbound request verification (Chat app bearer tokens and Pub/Sub push OIDC, verified with a stdlib-only RS256 implementation).
  • Dry-run call plans for sends, replies, threads, reactions, and pins, and an executor that turns plans into real API calls with retries, idempotency, and explicit live-mode safety gates.
  • Live streaming of model output through message edits via stream_chat_reply / astream_chat_reply, driven by a deterministic scheduler with patch cadence, size-limit truncate/split, cancellation, and resume.
  • AI-first helpers: conversation context builders, attachment pipelines, placeholder responses, async response handoff, token stores, and queue adapters. Optional FastAPI/ASGI adapters install with pip install "googlechatai[fastapi]".

Status: 0.1.0-beta.1 public-beta release candidate (published Python metadata normalizes this to 0.1.0b1). APIs may change before the stable 0.1.0 release.

Create a first app

The matching Node distribution carries the dependency-free CLI and generates Python projects:

npx googlechatai@next init my-python-chat-app --language python --install
cd my-python-chat-app
.venv/bin/python -m unittest
npx googlechatai@next replay fixtures/mention.json \
  --language python \
  --python .venv/bin/python \
  --handler app.py \
  --expect-text "You said"
npx googlechatai@next doctor

The generated app includes a minimal mention handler, verified and body-bounded callback server, sanitized fixture, test, environment template, and guarded smoke metadata example. Offline tests need no Google credentials.

The CLI also provides event inspection, dry-run Chat request planning, card linting, and configuration diagnosis. It is offline or read-only by default; the only write-capable path is an explicitly guarded smoke --live run in a dedicated test space.

Google Cloud project creation, Chat app registration, deployment, OAuth/admin approval, and installation remain operator steps.

googlechatai is an independent project and is not affiliated with or endorsed by Google LLC. Google Chat is a trademark of Google LLC.

Licensed under the Apache License 2.0. See LICENSE and NOTICE.

Release files for googlechatai 0.1.0b3

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

Source distribution (sdist)

Source distribution for googlechatai 0.1.0b3
File Size Uploaded
googlechatai-0.1.0b3.tar.gz 215.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for googlechatai 0.1.0b3
File Interpreter ABI Platform
googlechatai-0.1.0b3-py3-none-any.whl Python 3 none any Details

Total release size: 393.9 kB

Release files / googlechatai-0.1.0b3.tar.gz

Download URL googlechatai-0.1.0b3.tar.gz
Size 215.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2e9c4e624bb9eed8fd205e262eed1b4c9148ce0987a907fc85ccb9430cc9966f
BLAKE2b-256 checksum
How to use checksums
4925f03cbb00beb71853e2253b6f35841e8bfd6d13bb8d251391985d1f4904d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.

Transparency log

Release files / googlechatai-0.1.0b3-py3-none-any.whl

Download URL googlechatai-0.1.0b3-py3-none-any.whl
Size 178.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4d1616634a870694d7d9ca25eebfb2b269a24b7e35220ee1d4bcb008f3dc439
BLAKE2b-256 checksum
How to use checksums
7747b4427c7f95e7efbadacd25c49e0f0e5a75cd21be5676421d84d6fef09a5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.

Transparency log
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