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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_stats_page-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2a5b4256637e1a3068f568e6c17d21448edf1e8ea289cf58055cbe15cf808173
MD5 dbe8bd50a7f57b11ee4fee2cfe0064d1
BLAKE2b-256 045aca091a42c9757e618e349c976c6b4017341c12aa65c6cae8e985845c1a93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_stats_page-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8062a2c1ee39d402ad4f005eed3952e86d0ed812110af4f2ce62963c18789a69
MD5 643ba5bbc9edd026dc2eb032350f96ad
BLAKE2b-256 dc7ac465b1cb101f6ce4186e552e4a158e7af255424c00ad300f1ecacbefb00b

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