Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix html mode; move PyInstrumentProfilerMiddleware to top-level module #11

Merged
merged 3 commits into from Jan 3, 2023

Conversation

rgeoghegan
Copy link
Contributor

Specifically:

  • Check for server_app variable to properly put shutdown handler
  • Add open_in_browser argument to open browser automatically

Also, moved PyInstrumentProfilerMiddleware so you can just do:

from fastapi_profiler import PyInstrumentProfilerMiddleware

I bumped the version to 2.0.0 because of that last change because it is not backwards compatible, but let me know if it is too aggressive.

Specifically:
* Check for server_app variable to properly put shutdown handler
* Add open_in_browser argument to open browser automatically
No need for three levels of python modules. This is a major change that
will break previous code.
@sunhailin-Leo
Copy link
Owner

@rgeoghegan
LGTM, but i will change the version number~

@sunhailin-Leo sunhailin-Leo merged commit a22f04b into sunhailin-Leo:main Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants