Skip to main content

Adds fastcore fast tags to FastAPI views

Project description

FastAPI Tags

Adds fastcore fast tags to FastAPI views.

Test Package version Supported Python versions

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.6.tar.gz (4.3 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.6-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fastapi_tags-0.1.6.tar.gz
Algorithm Hash digest
SHA256 263fa06855306180ad4186a588b50a70b3aadea8310e5a7b90c666d776a3c2d7
MD5 e14f850b77dad97ca1c584b3657a670e
BLAKE2b-256 b40052b7956ec072164810476004d7f6bb8b0b67441071322ffd6f86992e3efe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_tags-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 eff7678c335c4cb1a420876693f4f698c011cfc9ea30838eb9395c247cf064ea
MD5 d0f3c27e450ddb0d3f2796d106ad6417
BLAKE2b-256 22711f1f09735ae083aebf5c0ee74c0df6e08f7126656dd2a9be20ac46ccee54

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