Describe the bug
Fails completely on Windows because resource is not available on Windows.
\lib\site-packages\fastapi_utils\timing.py", line 10, in <module> import resource
ModuleNotFoundError: No module named 'resource'
To Reproduce
Steps to reproduce the behavior:
pip install fastapi-utils
2.from fastapi_utils.timing import add_timing_middleware
Expected behavior
The import works.
Environment:
- OS: Windows 10
- Python version: 3.7
Additional context
https://stackoverflow.com/questions/37710848/importerror-no-module-named-resource
Describe the bug
Fails completely on Windows because
resourceis not available on Windows.To Reproduce
Steps to reproduce the behavior:
pip install fastapi-utils2.
from fastapi_utils.timing import add_timing_middlewareExpected behavior
The import works.
Environment:
Additional context
https://stackoverflow.com/questions/37710848/importerror-no-module-named-resource