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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_stats_page-0.1.0.tar.gz
  • Upload date:
  • Size: 1.5 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.0.tar.gz
Algorithm Hash digest
SHA256 aaf57e6b572f087e9699db2d0602a3a582ce24c374f272357340e3c57f39a521
MD5 46e2da53f97a4a7c4422abba92ad0d0a
BLAKE2b-256 7e1a5e3ecfd316c4eff22d05ac0d4038ff4cae4c6ab61f8cf8f1d3f1b9ff95bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_stats_page-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce4433d7447c2ae70d79ebd1b803bf12b15d1a0878f5ac6c1603429671129e8e
MD5 c70bb41a91b70d95f7003c45976952cb
BLAKE2b-256 8e8d85e373d02258244c4229b99ef3638b1c64e892f380124da2dc83792bc92d

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