acathon/fastman-cli
A powerful command-line interface for FastAPI: Generators, Database Management, and Project Scaffolding.
What's novel
A powerful command-line interface for FastAPI: Generators, Database Management, and Project Scaffolding.
Code Analysis
8 files read · 3 roundsA CLI tool that scaffolds complete FastAPI projects with multiple architecture patterns, generates CRUD features/models/services, installs authentication (JWT/OAuth/Keycloak/Passkey), and manages database migrations — essentially a Laravel-style artisan for the FastAPI ecosystem.
Strengths
The AST-aware injection system (injection.py) is genuinely well-designed — idempotent marker blocks, structural fallback via ast.parse, and validation-before-write ensure user files are never corrupted. The command architecture is clean with a proper registry pattern, signature DSL for help, and pattern-fit enforcement that prevents incompatible operations.
Weaknesses
The scaffolded code generation in scaffold.py uses f-strings rather than the Jinja2 template system, creating an inconsistency in the codebase and making it harder to maintain complex templates. The test suite exists (6 test files) but I couldn't verify depth; the project also lacks a proper argument parser (hand-rolled option/flag parsing in base.py is fragile compared to argparse/click).
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
54
Contributors
2
Files
105
Active weeks
5
Repository
Language
Python
Stars
3
Forks
0
License
MIT