Skip to main content

Adds fastcore fast tags to FastAPI views

Project description

FastAPI Tags

Install the package:

uv add fastapi-tags

Usage:

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:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_tags-0.1.5.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_tags-0.1.5-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_tags-0.1.5.tar.gz.

File metadata

  • Download URL: fastapi_tags-0.1.5.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for fastapi_tags-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6b2120c7733d7a4f188c296703c04ebae81a1ad5f61647c4d7f436d6e2af47e4
MD5 673917a313a98484a6d7cce64ed178c8
BLAKE2b-256 900f7d8eb5959aba8116143399566f42fcfe94ede603c363e505102a0716180f

See more details on using hashes here.

File details

Details for the file fastapi_tags-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_tags-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 22961ae3e4eebca3a214c4af52bc44c5cb383e0913e71d13aa391872d0ea3860
MD5 da6793c24e3438a4da6044d9b6f4ad80
BLAKE2b-256 cf6fcce7d49227900a379ed88f36997f8283f23d22313d14bb539b56dd585a6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page