Skip to main content

Chatbot command parsing library to be used in conjunction with Google Cloud Run and GSuite Chat.

Project description

GCR Chat

A simple chatbot framework for working with Google Cloud Run & PubSub messages.

Exports

  • Bot - The main bot class.
  • PubSubMessageRequest - A wrapper around a PubSub message, decodes the message using __str__
  • BotException - Base exception for the module, other exceptions inherit from this.
  • ArgumentParserError - When the bot fails to parse provided arguments.
  • CommandNotFoundError - When the bot cannot look up a function with the same name as the command provided.
  • InvalidArgumentsError - When the provided arguments do not match the command function's expected arguments.

Examples

See the examples for a simple bot using fastapi.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcr_chat-0.1.3.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

gcr_chat-0.1.3-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page