Metadata-Version: 2.4
Name: admin-panel
Version: 0.28.0
Summary: Add your description here
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: asgiref>=3.11.0
Requires-Dist: fastapi>=0.115.8
Requires-Dist: jinja2>=3.1.6
Provides-Extra: example
Requires-Dist: uvicorn>=0.34.0; extra == "example"
Requires-Dist: faker>=38.2.0; extra == "example"
Requires-Dist: pyjwt>=2.10.1; extra == "example"
Provides-Extra: tests
Requires-Dist: pytest>=8.4.2; extra == "tests"
Requires-Dist: pytest-asyncio>=1.2.0; extra == "tests"
Requires-Dist: httpx>=0.28.1; extra == "tests"
Requires-Dist: pytest-mock>=3.15.1; extra == "tests"
Requires-Dist: sqlalchemy>=2.0.41; extra == "tests"
Requires-Dist: aiosqlite>=0.22.1; extra == "tests"
Requires-Dist: factory-boy>=3.3.3; extra == "tests"
Requires-Dist: pyjwt>=2.10.1; extra == "tests"
Provides-Extra: scalar
Requires-Dist: scalar-fastapi>=1.5.0; extra == "scalar"


# Example

``` shell
uv sync --all-groups --all-extras
uv run uvicorn example.main:app --host 0.0.0.0 --port 8082 --reload
```

Docs:
`http://0.0.0.0:8082/docs`
`http://0.0.0.0:8082/redoc`
`http://0.0.0.0:8082/scalar`

Tests:
``` shell
uv run pytest
```

``` shell
from auth_models.db.models import User
from app.database import auth_db

async with auth_db.async_session() as session:
    user = User(
        username='admin',
        password='admin',
        email="admin@admin.com",
        is_admin=True,
    )
    session.add(user)
    await session.commit()
    await session.refresh(user)
    user
```
