Skip to main content

FastAPI visitor statistics with middleware and stats page

Project description

fastapi-stats-page

usage

from fastapi import FastAPI
from stats import StatsRouter, TrackVisitsMiddleware

app = FastAPI()

app.include_router(StatsRouter(title="Statistics of website").router)

app.add_middleware(TrackVisitsMiddleware)

@app.get("/")
async def homepage():
    return "hello world"

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_stats_page-0.1.5.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_stats_page-0.1.5.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for fastapi_stats_page-0.1.5.tar.gz
Algorithm Hash digest
SHA256 30ed1bb2da69c471959a0bdd153ece6c33e8eac31894d0e0acea98782254bc16
MD5 a5559dfba076d668e32be2d0bb987664
BLAKE2b-256 09ecc9c8f27ce728ccb5afd58d8fd7c31778a276f26a66cb5bb18a8d623dbd98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_stats_page-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8f162ff9ed181fdc854d90e4084fb8d743e5ccf4150e6681ae9ec465963d2da9
MD5 03cb03fe7ac3e0037fce16e77a8c52f4
BLAKE2b-256 ae613e0c13b2e7c28ac567fb257dcdd61fc09837db2dbb3b4a7ba29acd60f116

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