
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
A powerful CLI tool to scaffold and manage FastAPI projects with authentication, database migrations, and more
Zeon is a powerful Python-based CLI tool that instantly scaffolds a complete FastAPI project with built-in authentication, user management, JWT handling, database migrations, and environment-based configuration. It provides a comprehensive set of commands to manage your FastAPI project lifecycle.
To install Zeon from PyPI:
pip install zeon
zeon init myproject
This creates a complete FastAPI project with the following structure:
myproject/
āāā venv/ # Virtual environment
āāā app/
ā āāā __init__.py
ā āāā main.py # FastAPI app entry point
ā āāā database.py # Database configuration
ā āāā models.py # SQLAlchemy models (User model included)
ā āāā schemas.py # Pydantic schemas
ā āāā utils.py # Utility functions (password hashing)
ā āāā oauth2.py # JWT authentication logic
ā āāā routers/
ā āāā __init__.py
ā āāā auth.py # Authentication endpoints
āāā alembic/ # Database migrations (optional)
āāā alembic.ini # Alembic configuration (optional)
āāā .env # Environment variables
āāā .gitignore # Git ignore file
āāā requirements.txt # Python dependencies
zeon init <project_name>
zeon routers <router_name> [project_name]
app/routers/
main.py
Example:
zeon routers users
# Creates app/routers/users.py and registers it in main.py
zeon add <package_name> [project_name]
requirements.txt
with all dependenciesExample:
zeon add redis
# Installs redis and updates requirements.txt
# Create migration
zeon makemigrations [message] [project_name]
# Apply migrations
zeon migrate [project_name]
Examples:
zeon makemigrations "Add user profile"
zeon migrate
Zeon includes a complete authentication system:
POST /auth/register
- User registrationPOST /auth/login
- User login (returns JWT token)GET /auth/user/{id}
- Get user by ID# Register a new user
POST /auth/register
{
"username": "john_doe",
"email": "john@example.com",
"password": "securepassword"
}
# Login
POST /auth/login
Form data: username=john_doe&password=securepassword
# Response
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGci...",
"token_type": "bearer"
}
Zeon automatically generates a .env
file with:
SECRET_KEY=<auto-generated-secure-key>
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
After creating a project:
cd myproject
# Activate virtual environment
# Windows
venv\Scripts\activate
# Unix/macOS
source venv/bin/activate
# Run the development server
uvicorn app.main:app --reload
Your API will be available at http://localhost:8000
with automatic documentation at http://localhost:8000/docs
.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
FAQs
A powerful CLI tool to scaffold and manage FastAPI projects with authentication, database migrations, and more
We found that zeon demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Ā It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.