https://github.com/automa/bot-python
Starter kit for Python bot for Automa
https://github.com/automa/bot-python
automa automa-bot bot template
Last synced: 6 months ago
JSON representation
Starter kit for Python bot for Automa
- Host: GitHub
- URL: https://github.com/automa/bot-python
- Owner: automa
- Created: 2025-06-02T04:21:46.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-12-31T16:12:39.000Z (6 months ago)
- Last Synced: 2026-01-05T01:09:03.751Z (6 months ago)
- Topics: automa, automa-bot, bot, template
- Language: Python
- Homepage: https://docs.automa.app/bot-development
- Size: 23.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bot-python
Starter kit for Python bot for Automa
Please read the [Bot Development](https://docs.automa.app/bot-development) docs to understand how an [Automa][automa] bot works and how to develop it.
* `/automa` endpoint is the receiver for the webhook from [Automa][automa]
* `update` function in `app/update.py` is the logic responsible for updating code.
* `AUTOMA_WEBHOOK_SECRET` environment variable is available to be set instead of hard-coding it.
### Production
Start the app in production mode:
```sh
PYTHON_ENV=production uv run fastapi run
```
Needs [git](https://git-scm.org) to be installed on production.
### Development
Start the app in development mode:
```sh
uv run fastapi dev
```
### Testing
Run tests with:
```sh
uv run pytest
```
### Stack
* Uses [uv](https://docs.astral.sh/uv/) as a package manager.
* Uses [fastapi](https://fastapi.tiangolo.com/) as a server.
[automa]: https://automa.app