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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_stats_page-0.1.2.tar.gz
  • Upload date:
  • Size: 2.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.2.tar.gz
Algorithm Hash digest
SHA256 cb2ec63b038abe1e60ccf8a60cee6ff30a739f90d781ec3a942e68d9714a5cd7
MD5 5bcab3265234225fd264cddc0c55bf61
BLAKE2b-256 209cfc3c0fd1751d190a82466a65b7969ae6ed376633f7b76993fdb061886074

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_stats_page-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ea8fd6b80c90db728ec7d2c817472ba3dfa06aff69037ad64a6def2a7022a29e
MD5 0d3248eb8caf90840f42757c6e00a910
BLAKE2b-256 a8ea772773a78544bd9d3453b1327319ea3265ebc902003fd56f7fd9c1caa61a

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