Skip to content

Interop with FastAPI #64

@strangemonad

Description

@strangemonad

Thanks for this awesome project!

I know the main goal is actually to provide a stand-alone alternative but I'm curious if there's a way (or plans) to support interoperability with the FastAPI dependency system.

The main use case I can think of is the following:

  • In a larger code base, I want to be able to create some libraries that can be re-used in different contexts. E.g. a db package with connection pool setup dependencies. Sometimes that might be included in a fastapi app, other times a fast-stream app, other times a cli tool. I would like to be able to share the dependency configuration.
  • This is similar in spirit to how the guice or dagger dependency frameworks on the jvm allow you to create DI modules that can be composed and included (e.g. in a Spring boot or Jetty server).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions