Google Chat
A small package to simplify the creation of Google Chat Bots
Examples
Text Messages
To send a simple text message to a Google Chat webhook
from googlechatbot import GoogleChatBot
webhook_url = "https://chat.googleapis.com/v1/..."
bot = GoogleChatBot(webhook_url)
bot.send_text_message("test message")
Cards
To simplify card creation there is a builder
from googlechatbot import CardBuilder, GoogleChatBot
webhook_url = "https://chat.googleapis.com/v1/..."
bot = GoogleChatBot(webhook_url)
builder = CardBuilder()
builder.add_header("Title", "Subtitle", "https://example.com/images/image.png")
builder.create_section("My section")
builder.add_keyvalue_widget("Key","Value","STAR")
card = builder.build()
resp = bot.send_card_message(card)
Metadata
Release files for googlechatbot 1.2.3
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 |
|---|---|---|---|---|
| googlechatbot-1.2.3.tar.gz | 7.1 kB | Without provenance | Details for googlechatbot-1.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| googlechatbot-1.2.3-py3-none-any.whl | Python 3 | none | any | Details for googlechatbot-1.2.3-py3-none-any.whl |
Total release size: 14.4 kB
Release files / googlechatbot-1.2.3.tar.gz
| Download URL | googlechatbot-1.2.3.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c402651525ac730c0aa1a058ebc5e69bac6fdbe84c6467799c7fdaa732bb22a
|
|
BLAKE2b-256 checksum How to use checksums |
cb06aa9a70bc42bba8dcb020c58e6c0273cc2b26e4250f28dfa6e50375668d93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / googlechatbot-1.2.3-py3-none-any.whl
| Download URL | googlechatbot-1.2.3-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72a5c298586bcbc7b220c54e3fdf221ad54a6cc7c48c9fa16dbfc7a3e4b898b6
|
|
BLAKE2b-256 checksum How to use checksums |
2a82c689736e961da972c404fb2d001a8c3d802456e8ba4933ed96f79a866b27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for googlechatbot 1.2.3
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.