Is it possible to use Codon with FastAPI? #10096
Unanswered
junoriosity
asked this question in
Questions
Replies: 1 comment 1 reply
-
|
So I tried this, and cant seem to get the library imported: from python import fastapi
from typing import Union
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World"}I have the Here is the error im getting: I was able to get farther doing: from python import fastapi as fast
from typing import Union
#from fastapi import FastAPI
app = fast.FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World"}But then got a PyError: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I just came across codon, which seems to enable us to make Python-style code very fast.
Is it possible to combine FastAPI and Codon? If so, what are you experiences and do you have some code snippets at hand?
Beta Was this translation helpful? Give feedback.
All reactions