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.0b4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| googlechatai-0.1.0b4.tar.gz | 216.7 kB | With provenance | Details for googlechatai-0.1.0b4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| googlechatai-0.1.0b4-py3-none-any.whl | Python 3 | none | any | Details for googlechatai-0.1.0b4-py3-none-any.whl |
Total release size: 396.0 kB
Release files / googlechatai-0.1.0b4.tar.gz
| Download URL | googlechatai-0.1.0b4.tar.gz |
|---|---|
| Size | 216.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a2944672267c5779f382e67725ddb2d778be57480ec9514f8cec7a20e989bfc
|
|
BLAKE2b-256 checksum How to use checksums |
2b54d166bda54850911a23df46f7f8d49e39359cb8c11d3934ee66c7ba0d9fc9
|
| 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 28, 2026.
Transparency logRelease files / googlechatai-0.1.0b4-py3-none-any.whl
| Download URL | googlechatai-0.1.0b4-py3-none-any.whl |
|---|---|
| Size | 179.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45ae61e42174245311cc98bc712505a67b4c911846f8bf9438dd68056a5ff4c6
|
|
BLAKE2b-256 checksum How to use checksums |
bcb82e24d40ea9a86ed5abe5c1a51846ecfa41169ab88218ea415812461019eb
|
| 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 28, 2026.
Transparency logSecurity for googlechatai 0.1.0b4
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.
Attestation for googlechatai-0.1.0b4.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 Sep 28, 2026.
Transparency logA 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.