π Flite is a CLI tool that generates Flask projects automatically. Creates projects with modern structure, automatic configuration, and production-ready setup.
- ποΈ Generates Flask projects with professional structure
- βοΈ Automatic virtual environment configuration
- π¦ Pre-configured dependencies
- π¨ Modern HTML/CSS/JS templates
- π§ Automatic environment variables
- π Standard folder structure
- π Commands for development and production
- ποΈ Support for SQLite database or no database
# Clone the repository
git clone https://github.com/artbyo3/flite.git
cd flite
# Install in development mode
pip install -e .pip install flite------------------flite interactive
# or simply
flite create# Basic project
flite create my-project --template basic --database sqlite
# REST API project
flite create my-project --template api --database none
# Run project
cd my-project
flite run
# Build for production
flite buildmy-project/
βββ app/
β βββ __init__.py # Application factory
β βββ routes.py # Main routes (index only)
β βββ static/
β β βββ css/style.css # Minimal custom styles
β β βββ js/main.js # Minimal custom JavaScript
β βββ templates/
β βββ base.html # Base template
β βββ index.html # Simple page with "Flite"
βββ .venv/ # Virtual environment (hidden)
βββ .env # Environment variables
βββ .gitignore # Git ignore file
βββ requirements.txt # Python dependencies
βββ config.py # Application configuration
βββ run.py # Execution script
my-project/
βββ app/
β βββ __init__.py # Application factory
β βββ routes.py # API endpoints
β βββ templates/
β βββ index.html # API documentation page
βββ .venv/ # Virtual environment (hidden)
βββ .env # Environment variables
βββ .gitignore # Git ignore file
βββ requirements.txt # Python dependencies
βββ config.py # Application configuration
βββ run.py # Execution script
- Flask - Web framework
- SQLAlchemy - Database ORM (when database enabled)
- Flask-Migrate - Database migrations (when database enabled)
- HTML5 - Semantic structure
- CSS3 - Modern styles
- JavaScript - Basic interactivity
- SQLite - Local database (optional)
- No Database - Static files only
flite create my-blog --template basic --database sqlite
cd my-blog
flite run
# Visit http://127.0.0.1:5000flite create my-api --template api --database none
cd my-api
flite run
# Visit http://127.0.0.1:5000 for API documentationThe .env file is generated automatically with basic configuration:
# Flask configuration
FLASK_APP=run.py
FLASK_ENV=development
SECRET_KEY=your-secret-key-here
# Database configuration (if enabled)
DATABASE_URL=sqlite:///app.dbYou can customize your project by editing:
config.py- Application configurationapp/static/css/style.css- Custom stylesapp/static/js/main.js- Custom JavaScriptapp/templates/- HTML templates
flite run --debug# Build for production
flite build
# Use with Gunicorn
gunicorn -w 4 -b 0.0.0.0:8000 wsgi:app- Fork the project
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is under the MIT License. See the LICENSE file for more details.
- Flask team for the excellent framework
- Python community for the amazing libraries