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

Remove FastAPI dependency #244

Closed
wants to merge 1 commit into from
Closed

Remove FastAPI dependency #244

wants to merge 1 commit into from

Conversation

joelynch
Copy link
Contributor

@joelynch joelynch commented Oct 2, 2024

FastAPI does not suit our needs as our routes do not return pydantic models, they return MsgSpec Structs. Additionally, we do not make use of schema generation. Instead, we can thinly wrap Starlette ourselves.

FastAPI does not suit our needs as our routes do not return pydantic
models, they return MsgSpec Structs. Additionally, we do not make use of
schema generation.  Instead, we can thinly wrap Starlette ourselves.
@joelynch joelynch marked this pull request as ready for review October 7, 2024 17:30
@joelynch joelynch requested review from kmichel-aiven and a team October 7, 2024 17:30
Copy link
Contributor

@kmichel-aiven kmichel-aiven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure keeping a decorator-based approach is really necessary, that's more code and complexity than just building the routers with direct calls. I don't think it's worth writing half a custom framework.

The other related aspect is that starlette.py isn't tested, so making it much smaller and directly testing it would be good.

@joelynch joelynch closed this Nov 12, 2024
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.

2 participants