yezz123 / authx

Ready-to-use and customizable Authentications and Oauth2 management for FastAPI ✨
https://authx.yezz.me/
MIT License
796 stars 48 forks source link

cannot import 'ProfilerMiddleware' from 'authx' #658

Closed TMGboy closed 1 month ago

TMGboy commented 1 month ago

ImportError: cannot import name 'ProfilerMiddleware' from 'authx' (/usr/local/lib/python3.9/dist-packages/authx/init.py)

yezz123 commented 1 month ago

Hey @TMGboy 👋🏻

ProfilerMiddleware is migrated to authx-extra you can use it like this:

pip install authx-extra[profiler]
from fastapi import FastAPI
from authx_extra.profiler import ProfilerMiddleware

app = FastAPI()

app.add_middleware(ProfilerMiddleware)