Metadata-Version: 2.4
Name: fastapi-gen-newone
Version: 0.1.2
Summary: ⚡ Scaffold production-ready FastAPI projects instantly
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 ⚡

> Create production-ready FastAPI projects in seconds.

## 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 JWT Auth (login/register routes): Yes
? Include Docker (Dockerfile + docker-compose): Yes
? Include Pytest (test suite): Yes
```

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

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

## 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 |
