Closed johnthagen closed 5 months ago
Hey, It is fixed in one of the forks, You are welcome to give it a try
Hey, It is fixed in one of the forks, You are welcome to give it a try
better make pull request for this feature. I'm also want for this feature but i dont want to install fork instead of this package
+1
Done in version 0.6.0! (via #291 )
Is your feature request related to a problem? Please describe.
We use
fastapi_utils.InferringRouter
on a lot of projects to enable more natural use of type annotations within FastAPI. On some of these projects, there is no database usage at all or even a different database type all together, such as MongoDB.We'd like to avoid the need of installing
sqlalchemy
(and its dependencygreenlet
) in these situations, which makes the Docker images larger and is one more package we need to track for updates and audit.Describe the solution you'd like
Be able to install
fastapi-utils
in two ways:Additional context
In Poetry, use the
extras
keyword to accomplish this: https://python-poetry.org/docs/pyproject/#extrasSetuptools docs on optional dependencies: https://setuptools.readthedocs.io/en/latest/userguide/dependency_management.html#optional-dependencies