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.

Metadata

Release files for googlechatai 0.1.0b5

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.0b5
File Size Uploaded Provenance Actions
googlechatai-0.1.0b5.tar.gz 219.0 kB With provenance Details for googlechatai-0.1.0b5.tar.gz

Built distribution (wheel)

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

Total release size: 399.1 kB

Release files / googlechatai-0.1.0b5.tar.gz

Download URL googlechatai-0.1.0b5.tar.gz
Size 219.0 kB
Tags Source
SHA-256 checksum
How to use checksums
64e7273d7853183e482b61f79b6847b8bc14e5be74162821d6fb318130d12db1
BLAKE2b-256 checksum
How to use checksums
73766429c44db2c3785d2ed78ea67c18fbc828470c565fea8ffa6736bd8981ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

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

Download URL googlechatai-0.1.0b5-py3-none-any.whl
Size 180.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1066d3e05784c3836bec2211c86a1c1df9eb7ea26cf1503ad09865e1fbbec1ad
BLAKE2b-256 checksum
How to use checksums
2287663e82e30723b9be7d01ce76674496e39d11e453877f87fd3bde9a423d4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Security for googlechatai 0.1.0b5

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for googlechatai-0.1.0b5.tar.gz

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 Nov 9, 2026.

Transparency log

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