Skip to content

How could someone use rodi in web frameworks other than BlackSheep #51

Description

@aeb-dev

I am trying to integrate rodi with FastAPI but I am not sure how should I approach to the problem.

Is there any example? Flask or any other web framework example would also help

Activity

  1. lucas-labs commented on Feb 8, 2024

    @lucas-labs
    Contributor

    @aeb-dev
    I'm creating a library using Rodi and FastAPI. Although it might be overkill for what you're asking, you can see how I implemented and combined them here if you have the time to go through the code haha:

    https://github.com/lucas-labs/pest/blob/master/pest/core/module.py

  2. aeb-dev commented on Feb 12, 2024

    @aeb-dev
    Author

    Thank you @lucas-labs. We actually inspired from your project to achieve what we want. Thanks for the idea!

  3. StummeJ commented on Feb 28, 2024

    @StummeJ
    Contributor

    We integrated Rodi into FastAPI via a custom middleware, and to Strawberry via a SchemaExtension. To not interfere with either framework we use wrappers to remove the autowired parameters from what the frameworks see. Strawberry specifically isn't friendly to this process.

  4. locked and limited conversation to collaborators on Mar 7, 2026
  5. converted this issue into a discussion #67 on Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions