iTelecast is a lightweight, Telegram bot that automatically publishes messages to a Telegram channel.
git clone https://gitlab.com/itanc-com/itelecast.git
cd itelecastgit checkout -b [new_branch]
git commit -m "commit note"
git push
uv venv
source .venv/bin/activate
pip install -r requirements.txt
You can run the app in development or production mode.
python3 run.py
uv run fastapi dev
fastapi run
uv run fastapi dev --host 0.0.0.0 --port 5001
- Python 3.11+
- FastAPI
- uv (optional, for faster workflows)
If you want to add a feature to the project and need to install new packages, follow these steps:
Use uv pip install instead of regular pip install. This ensures that packages are installed in a reproducible and isolated environment managed by uv.
uv pip install <package-name>uv add fastapi --extra standard
For example :
uv pip install httpx
This automatically updates your virtual environment and makes the package available in the project.
pre-commit install
check all files before commit
pre-commit run --all-files
After installing or upgrading packages, freeze the current environment into requirements.txt
uv pip freeze > requirements.txt
This file contains configuration values used by the application. It's typically used to separate environment-specific settings from the application code.
filename : app/.env
ENVIRONMENT='DEV' # environment variable permitted: 'DEV', 'PROD', 'TEST'
DATABASE_URI="sqlite:///./app/db/db.sqlite3"
JWT_ISSUER_SERVER="localhost:8000"
JWT_SECRET_KEY="your_secure_key"
For open source projects, say how it is licensed.