Metadata-Version: 2.4
Name: rodrigo0000-fastapi-core-auth
Version: 1.0.2
Summary: Authentication module for FastAPI with JWT, OAuth2, and user management
Home-page: https://github.com/rfirm/fastapi-core-auth
Author: R Firm
Author-email: R Firm <rodrigo@rfirm.com>
License: MIT
Project-URL: Homepage, https://github.com/rfirm/fastapi-core-auth
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Framework :: FastAPI
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: fastapi>=0.104.0
Requires-Dist: sqlalchemy>=2.0.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: python-jose[cryptography]>=3.3.0
Requires-Dist: passlib[bcrypt]>=1.7.4
Requires-Dist: python-multipart>=0.0.6
Dynamic: author
Dynamic: home-page
Dynamic: requires-python

# rodrigo0000-fastapi-core-auth

Authentication module for FastAPI with JWT, OAuth2, and user management.

## Features

- JWT token-based authentication
- OAuth2 password flow
- User registration and login
- Password hashing with bcrypt
- Token refresh functionality
- User management repository

## Installation

```bash
pip install rodrigo0000-fastapi-core-auth
```

## Usage

```python
from rodrigo0000_fastapi_core_auth import router, AuthRepository
from fastapi import FastAPI

app = FastAPI()
app.include_router(router, prefix="/api/v1/auth", tags=["auth"])
```

## Components

- **AuthRepository**: Database operations for user authentication
- **Schemas**: Pydantic models for requests and responses
  - `LoginRequest`
  - `RegisterRequest`
  - `UserResponse`
  - `AuthResponse`
- **Router**: FastAPI router with authentication endpoints

## Requirements

- Python >= 3.8
- FastAPI >= 0.104.0
- SQLAlchemy >= 2.0.0
- Pydantic >= 2.0.0
- python-jose[cryptography] >= 3.3.0
- passlib[bcrypt] >= 1.7.4

## License

MIT License

## Author

R Firm - Professional SaaS Development
