Skip to main content

Opinionated FastAPI + Aiogram project generator (FastGram template)

Reason this release was yanked:

i got new one

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 .                   # Scaffold in current directory (no subfolder)
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.3.tar.gz (143.1 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.3-py3-none-any.whl (167.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastogram-0.0.3.tar.gz
  • Upload date:
  • Size: 143.1 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.3.tar.gz
Algorithm Hash digest
SHA256 d3bf142d2d7e9767df32ffeba0c6319ec4c517bba86b69643b292c4b471b8caa
MD5 df0c8c936489ebd6f5859b1e39723f67
BLAKE2b-256 98e8f4e3b52fb74237c6f98d945fd88ee1c4c093a0afacd994ab5cb4aefbbae9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastogram-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 167.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 01963b979dbdd36a5f81a1fff194127b8c7d5f6b45c6aa59ca8d251d9c2c8a52
MD5 67b260ebe96c3e3043783a97bd6d85d5
BLAKE2b-256 f2a661157063ec49d57e8da176c63c7da1d48a0fa27f9bc0a7ddca5b4125c76a

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