Skip to main content

icon

PyPI Version License Python Versions GitHub Stars GitHub Issues GitHub Forks GitHub Last Commit GitHub Contributors GitHub Code Size GitHub Repo Size PyPI Downloads

A laravel installer inspired Python Web Application Scaffolding Tool that helps you create web applications with ease!

✨ Features

  • 🎯 Interactive project setup wizard
  • 🔧 Multiple framework support:
    • Flask - Lightweight WSGI framework
    • FastAPI - Modern, fast API framework
    • Bottle - Simple micro web framework 🚧
    • Pyramid - Flexible web framework 🚧
  • 🎨 Project templates for both web apps and APIs
  • ✨ Interactive webapp welcome page with light/dark themes, copyable commands, and a live health-response inspector
  • 🏗️ Modular project structure (see below)
  • 🔄 Automatic virtual environment setup
  • 📦 Dependency management
  • 🏗️ Structured project scaffolding
  • 🧪 Test scaffolding with pytest
  • 🔄 Update checker for the CLI
  • 🚀 Command to run your application

Webapp welcome page — 0.14.0

New Flask and FastAPI webapps open with a Laravel-inspired welcome page featuring a prominent AMEN version badge, project details, and a searchable reference of AMEN commands with descriptions and copy buttons. Theme preferences persist, and the health control checks the real /health endpoint. Fonts, styles, scripts, and functional icons are bundled locally. Motion respects your system preference; the layout uses warm neutral surfaces and red accents.

Customize <project>/<package>/templates/index.html, the styles under <project>/<package>/static/css/, and static/js/app.js. The generated welcome-tokens.css controls colors, type, spacing, elevation, and motion. The bundled font's license is in static/fonts/OFL.txt.

API projects continue to return JSON at /. Updating AMEN does not replace pages in existing projects. See the design and behavior breakdown and 0.14.0 release notes for the redesign and accumulated fixes.

Generated AMEN webapp welcome page in light theme

View the dark theme.

🛠️ Installation

Using pip (All platforms)

pip install amen-cli

Using uv

uv is a very fast Python package installer and resolver, written in Rust.

To install amen-cli using uv:

  1. Install uv:

    pip install uv
    
  2. Install amen-cli using uv:

    uv pip install amen-cli
    

uv utilizes the pyproject.toml file for resolving dependencies, ensuring a consistent and reproducible installation.

Debian/Ubuntu

# Install required dependencies
sudo apt-get update
sudo apt-get install python3-pip python3-venv

# Install AMEN CLI
pip3 install amen-cli

# Optional: Install system-wide (requires root)
sudo pip3 install amen-cli

Linux Post-Installation

Make sure the amen command is in your PATH:

export PATH="$HOME/.local/bin:$PATH"

Add this line to your ~/.bashrc or ~/.zshrc for permanent effect.

📖 Usage

# Create a new project
amen create
# or use the short-form alias
am create

# You can also use flags to specify the framework, type, and name:
amen create -f flask -t webapp -n myapp
am create -f flask -t webapp -n myapp

# Available options:
# -f, --framework   Framework to use (flask, fastapi, bottle, pyramid)
# -t, --type        Type of application (webapp, api)
# -n, --name        Name of the application

# If flags are not provided, the interactive prompts will be used.

# Follow the interactive prompts to:
# 1. Select a framework
# 2. Choose application type (webapp/api)
# 3. Name your project

# Launch the web interface for project management
amen web [options]
am web [options]

# Available web interface options:
# -p, --port       Port to run the web interface on (default: 3000)

Command Alias

All commands can be run using the short-form alias am instead of amen:

am create          # instead of: amen create
am run myapp       # instead of: amen run myapp
am test myapp      # instead of: amen test myapp
am update    # instead of: amen check-update
am config myapp    # instead of: amen config myapp

Command results

Successful commands exit with status 0. Operational failures return a nonzero status, and invalid arguments return 2. Failed application, test, installation, and migration subprocesses preserve their exit codes; signal exits use 128 + the signal number. A cache download failure remains a warning when installation succeeds. Cancelled creation or update operations return nonzero.

Security audits return 0 for a clean report, 1 when findings are present, and the tool's exit status for execution errors. JSON reports remain readable from standard output. Web creation returns HTTP 400 for invalid input, 409 for an existing target, and 500 for setup failures; successful responses include the actual normalized project name and path. Web requests never prompt to overwrite directories.

Additional Commands

# Run your application
amen run <app_name>
am run <app_name>

# Example:
amen run myapp
am run myapp

# Run tests for your application
amen test <app_name>
am test <app_name>

# Example:
amen test myapp
am test myapp

# Check for updates to the CLI
amen update
am update

# Manage project configuration
amen config <app_name>
am config <app_name>

# Example:
amen config myapp
am config myapp

# Run a security audit on your application
amen audit <app_name> [options]
am audit <app_name> [options]
# Options:
# -f, --format     Output format (txt, json, csv, xml; default: txt)
# -s, --severity   Filter issues by severity (low, medium, high)
# -o, --output     Save audit report to a specified file
# Example:
amen audit myapp -s high
am audit myapp -s high

# Monitor application status and resource usage in real time
amen monitor <app_name> [options]
am monitor <app_name> [options]
# Options:
# -p, --port       Port to monitor
# -r, --refresh    Refresh rate in seconds (accepts decimal values; default: 0.1)
# --web            Run a web based monitor
# Example:
amen monitor myapp --port 5000 --refresh 0.5
am monitor myapp --port 5000 --refresh 0.5
amen monitor myapp --port 5000 --refresh 0.5 --web
am monitor myapp --port 5000 --refresh 0.5 --web

# Run database migrations for your application
amen migrate <app_name>
am migrate <app_name>

# Example:
amen migrate myapp
am migrate myapp
# This will:
# 1. Initialize migrations if not already initialized
# 2. Create a new migration
# 3. Upgrade the database

# Install a package in your application's virtual environment
amen install <app_name> <package>
am install <app_name> <package>

# Example:
amen install myapp requests
am install myapp flask-cors
# This will:
# 1. Cache the package for offline use
# 2. Install the package in the application's virtual environment

Add endpoints, utilities, and views

amen add myapp endpoint products
amen add myapp util formatting
amen add myapp view dashboard

The add command refuses to replace existing endpoint, utility, or template files. If either output for a view already exists, the command stops before creating the other output or changing route registration. Use a different name or deliberately move the existing files before generating replacements.

Database scaffolding and migrations

Choose SQLite, MySQL, or no database during creation. No-database projects omit database initialization and database dependencies. For database projects, DATABASE_URL in the environment or the project's .env controls the connection. SQLite defaults to instance/<app_name>.db; relative SQLite paths are resolved from the project root. MySQL URLs use the included PyMySQL driver, for example mysql+pymysql://user:password@localhost:3306/myapp.

Flask projects register their models with Flask-SQLAlchemy and Flask-Migrate. FastAPI projects include database.py with Base, SessionLocal, and the get_db session dependency, plus an Alembic migration environment. Both load the generated Users model into migration metadata and compute creation timestamps per inserted row in UTC.

Run amen migrate myapp from the parent directory to generate and apply a migration. The command selects Flask-Migrate for Flask and Alembic for FastAPI, and reports an error for no-database projects. Schema changes require a reachable database; creating a MySQL app does not create the MySQL database or credentials. For reviewing revisions before applying them, run the framework's migration commands directly inside the project's environment. These scaffold changes apply to newly created projects; existing generated applications require manual updates.

🌟 Project Structure

When you create a project, AMEN now generates a modular structure:

your-app/
├── venv/                   # Virtual environment
├── your-app/               # Main application package
│   ├── api/                # API endpoint modules
│   ├── auth/               # Authentication (token.py, etc.)
│   ├── models/             # Models module
│   ├── static/             # Static files (CSS, JS, images)
│   │   ├── uploads/
│   │   ├── css/
│   │   └── js/
│   ├── templates/          # HTML templates (if webapp)
│   └── app.py / main.py    # Main application file (Flask: app.py, FastAPI: main.py)
├── tests/                  # Test files
├── docs/                   # Documentation
├── requirements.txt        # Python dependencies
├── .env                    # Environment variables (local)
├── .env.example            # Environment variables template
├── .gitignore              # Git ignore rules
├── app.py                  # Application runner
└── README.md               # This file
  • Flask: Uses app.py and registers routes from separate files inside api/ (for example home.py, health.py, protected.py). Token authentication is in auth/token.py.
  • FastAPI: Uses main.py and includes routers from separate files in api/ through api/endpoints.py. Token authentication is in auth/token.py.
  • Webapp: Includes HTML templates and static files. FastAPI mounts static and template directories.
  • API: Generates only API endpoints and disables template/static mounting.

Generated Flask protected routes require Authorization: Bearer <token>. Missing, malformed, invalid, or expired credentials return JSON with HTTP 401. Bearer scheme casing and ordinary whitespace variations are accepted. Existing generated projects need their token decorator updated manually to receive this template fix.

🎯 Supported Frameworks

Framework Description Default Port Status
Flask Lightweight WSGI web framework 5000 ✅
FastAPI Modern, fast web framework 8000 ✅
Django High-level Python web framework 8000 ❌
Bottle Fast, simple micro framework 8080 🚧
Pyramid Flexible web framework 6543 🚧

Work in Progress

Currently implementing support for additional web frameworks:

  • Bottle: Integration in development
  • Pyramid: Initial implementation phase

These frameworks will enable:

  • Route mapping and handling
  • Request/response processing
  • Middleware integration
  • Template rendering support

Check back for updates or follow the project's issues for implementation progress. Contributions are welcome!

Note: For now, please use our stable implementations for Flask or FastAPI.

🚗 Quick Start

# Install AMEN CLI
pip install amen-cli

# Create a new project
amen create

# Follow the interactive prompts

# Navigate to your project
cd your-project-name

# Activate virtual environment
source venv/bin/activate  # Linux/Mac
venv\Scripts\activate     # Windows

# Run your application
python app.py
Or
#Before you cd into your project you can run the following 
amen run <appname>

🔧 Development

# Clone the repository
git clone https://github.com/taqsblaze/amen-cli.git

# Install for development and regression testing
cd amen-cli
pip install -e ".[dev]"

# Run tests
pytest

# Run tests with coverage
pytest --cov

Project review and improvement plan

See the 0.13.1 feature review and roadmap for verified bugs, recommended additions, acceptance criteria, and implementation order. The backlog tracks proposed work, and the verification record records the review results and limits.

🤝 Contributing

Contributions are welcome! Here's how:

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

👥 Contact & Support

⭐ Credits

Created by Tanaka Chinengundu
Inspired by Laravel's elegant development experience


Made with ❤️ by Tanaka Chinengundu

Metadata

Release files for amen-cli 0.14.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amen-cli 0.14.0
File Size Uploaded Provenance
amen_cli-0.14.0.tar.gz 1.0 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for amen-cli 0.14.0
File Interpreter ABI Platform
amen_cli-0.14.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.9 MB

Release files / amen_cli-0.14.0.tar.gz

Download URL amen_cli-0.14.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
089b4abf57bed0cee0b944fff731f0279eeb27c7a9c822bcaf62fce4a4b96164
BLAKE2b-256 checksum
How to use checksums
0f58fc9ffdfedaaff4b069eb0d3b1f376b71caa27ce74aa3b2c8690479eb75a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / amen_cli-0.14.0-py3-none-any.whl

Download URL amen_cli-0.14.0-py3-none-any.whl
Size 814.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
590cad425de1b6625391a87dfd718c08b56f42365628fcc281f3a6bee5ad1cf5
BLAKE2b-256 checksum
How to use checksums
88a1a532a36dc00a4e0a34782be9c8bc3da91dee2a63bbe9ae664aaa29f65616
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for amen-cli 0.14.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page