Metadata-Version: 2.4
Name: fastapi-tags
Version: 0.1.5
Summary: Adds fastcore fast tags to FastAPI views
Project-URL: homepage, https://github.com/pydanny/fastapi-tags
Project-URL: bugs, https://github.com/pydanny/fastapi-tags/issues
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi>=0.115.12
Requires-Dist: fastcore>=1.8.2
Dynamic: license-file

# FastAPI Tags

Install the package:

```bash
uv add fastapi-tags
```

Usage:

```python
from fastapi import FastAPI
import fastapi_tags as ft

app = FastAPI()

@app.get("/", response_class=ft.FTResponse)
async def index():
    return ft.Html(ft.H1("Hello, world!", style="color: blue;"))
```

If you want to do snippets, just skip the `ft.Html` tag:

```python
@app.get("/time", response_class=ft.FTResponse)
async def time():
    return ft.P("Time to do code!")
```
