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.3.tar.gz (3.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_stats_page-0.1.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_stats_page-0.1.3.tar.gz
  • Upload date:
  • Size: 3.3 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.3.tar.gz
Algorithm Hash digest
SHA256 1ba80991dcd321ba0081d292ebb8db4caa4d0921a8793e1cf0d4c97deda50729
MD5 50a5104a77f2e0f8be933dc13fdb0fa9
BLAKE2b-256 faebd91942d26aeed832c7078ef32b3d3e57441b3bdd3dcd7d9e3dc74633b6c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_stats_page-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ffca580b72fb45863b1faadcd104de0d7f04344d7f82c6c1ca2c29b090f9e691
MD5 2ed607d81b20a345f3f2aa6025c3a587
BLAKE2b-256 99409526f511f3e4a522971570bf3bb3ddc128df5986ea83986ef95e809726dc

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