Skip to main content

Opinionated FastAPI + Aiogram project generator (FastGram template)

Project description

Fastogram

Opinionated FastAPI + Aiogram project generator — like django-admin startproject for FastGram.

Installation

pip install fastogram

Or with uv:

uv add fastogram

Usage

Create a new project:

fastogram new my-telegram-bot

This creates my-telegram-bot/ with the full FastGram template. Then:

cd my-telegram-bot
uv sync
# Edit .env with your TELEGRAM_BOT_TOKEN
python manage.py setup
python manage.py run --reload

Options

fastogram new my-bot              # Create ./my-bot/
fastogram new my-bot -d ~/code   # Create ~/code/my-bot/

For maintainers: syncing the template

When you update FastGram (architecture changes, bug fixes, etc.), sync the template into the CLI so pip install fastogram users get the latest:

cd cli/FastoGram
python scripts/sync_template.py

Or with a custom FastGram path:

FASTGRAM_SOURCE=/path/to/FastGram python scripts/sync_template.py

The sync copies FastGram → src/fastogram/templates/fastgram/, excluding .git, .venv, and other generated files. Rebuild and publish a new fastogram release after syncing.

Publishing to PyPI

# 1. Create .pypi-token with your PyPI API token (from pypi.org/manage/account/token/)
echo "pypi-your-token-here" > .pypi-token

# 2. Publish
make publish

.pypi-token is in .gitignore — it will never be committed.

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

fastogram-0.0.2.tar.gz (143.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastogram-0.0.2-py3-none-any.whl (167.0 kB view details)

Uploaded Python 3

File details

Details for the file fastogram-0.0.2.tar.gz.

File metadata

  • Download URL: fastogram-0.0.2.tar.gz
  • Upload date:
  • Size: 143.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for fastogram-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c60d1e0a49ae0750e2fdbe3a206edbf5e5dea29e7c243c875962ed2c46f591bb
MD5 ed5bc13d0b1127f666d7bcbaef480958
BLAKE2b-256 d4a67d5df83c9b98c4ca226c17666dd0fd804951903479302c64cfadff1d9d51

See more details on using hashes here.

File details

Details for the file fastogram-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: fastogram-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 167.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for fastogram-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3437951e0ece795bf53eacb434dfec53e30197c876c982ac8706227b405d6718
MD5 690c55b6bccfdd1f6159c717607b8148
BLAKE2b-256 ae6ec88e15fab8dd76a02d7a328f0bca59a7352611b0540acb76e11f1ce41df9

See more details on using hashes here.

Supported by

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