Metadata-Version: 2.4
Name: fastapi-gen-newone
Version: 0.1.6
Summary: Create production-ready FastAPI projects in seconds
Author: Mouad Sadik
License: MIT
Keywords: fastapi,cli,generator,backend,python
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENCE
Requires-Dist: typer>=0.12
Requires-Dist: rich>=13
Dynamic: license-file

# FastAPI Gen ⚡

[![GitHub Stars](https://img.shields.io/github/stars/MouadSadik/fastapi-gen-cli?style=social)](https://github.com/MouadSadik/fastapi-gen-cli/stargazers)
![Tests](https://img.shields.io/badge/tests-passing-brightgreen)
![PyPI](https://img.shields.io/pypi/v/fastapi-gen-newone)
![Python](https://img.shields.io/pypi/pyversions/fastapi-gen-newone)
![Downloads](https://img.shields.io/pypi/dm/fastapi-gen-newone)
![License](https://img.shields.io/badge/license-MIT-green)

**Create production-ready FastAPI projects in seconds**

*Skip the boilerplate. Ship faster.*

## Install
```bash
pip install fastapi-gen-newone
```

## Usage

### Interactive (recommended)
```bash
fastapi-gen my-app
```

You'll be prompted to select features:
```
⚡ FastAPI Project Generator
Scaffold a production-ready FastAPI app in seconds

? Project name: my-app
? Include SQLAlchemy (database models): Yes
? Include Alembic (database migrations): Yes
? Include Docker (Dockerfile + docker-compose): Yes
? Include Pytest (test suite): Yes
```

### With flags (non-interactive)
```bash
fastapi-gen my-app --db --docker --alembic --tests
```

### Skip prompts entirely
```bash
fastapi-gen my-app -y            # bare project, no extras
```

## Generated structure
```
my-app/
├── src/
│   ├── main.py            ← FastAPI app entrypoint
│   ├── core/
│   │   └── config.py    ← pydantic-settings
│   ├── api/v1/
│   │   ├── router.py
│   │   └── endpoints/
│   │       └── health.py   
│   ├── db/                ← (if --db)
│   │   └── session.py
│   ├── models/            ← (if --db)
│   └── schemas/           ← (if --db)
├── alembic/               ← (if --alembic)
├── tests/                 ← (if --tests)
├── Dockerfile             ← (if --docker)
├── docker-compose.yml     ← (if --docker)
├── pyproject.toml
├── .env.example
└── README.md
```

## Options

| Flag | Description |
|------|-------------|
| `--db` | SQLAlchemy async ORM + aiosqlite |
| `--alembic` | Alembic migration setup |
| `--docker` | Dockerfile + docker-compose |
| `--tests` | pytest + httpx async test suite |
| `-y / --no-interactive` | Skip all prompts |

---

## By Mouad Sadik
