Skip to content
Home » 2024.08.08 – Stream Notes

2024.08.08 – Stream Notes

  • by
  • Stream Notes
    • Doing
      • More FastAPI – Complete Course for Python API Development, starting from Episode 5
      • Value of FastAPI vs FastHTML
        • MeaLeon is a webapp, which makes it maybe a better fit for something like FastHTML
        • However, data scraping and processing could be better done through FastAPI to make sure that the data and data pipelines are consistent
        • FastAPI/Pydantic can ensure data goes into SQL in the correct format and async
        • Could also try to have responses from Edamam API get checked by FastAPI to make sure further processing will be ok (there was a time when I was getting no responses from MeaLeon and it was because the Edamam response changed and I didn’t see/refactor my code)
          • the way I would imagine it would be you would make an http request from edamom or whatever to your FastAPI, sending the data as json, and then you’d use pydantic in FastAPI to verify the data is the correct structure
          • yeah, you can use requests to make a post request to your fastapi sever with the json as a payload and then pydantic validates that json
    • From Chat / Derail
      • #twnki Pydantic models for requests and responses; super big love for it
        • #hittaus says FastAPI for backend
        • Fasthtml is the way is you want a path from minimal html that could be later made full react js one page app
        • Can I use Swagger to make things that don’t look like Swagger UI?
          • cuz you can use swagger to test your endpoints directly. Like you can put the data you want to test in swagger, and send it to your server in the browser like you would do with postman, its super awesome
          • Like if you had written the backend already, youd be able to go to your swagger backend and just manually put the data in as JSON, and when you use pydantic I think it even prefills the field names for you and you just put the data in
      • What is JSON? History of JSON?
      • #hittaus Thus full focus on Algo on a UI platform that requires minimal minutes: CLI, Text, Gradio/Streamlit/Mesop, Fasthtml, React+FastAPI is your proper path
        • So I do suggest: go through FastAPI as you’re on it. You’ll benefit from it forever. Then any minimal UI, even current, but instead all focus on 1. as quick iterations as possible. Preferably minutes. Def not weeks. 2. Setup evaluations so you’re not flying in dark. 3. Take a step forward with your Algo. Then another…
    • Check northdeltagames in the future
    • We raided VLil_Shadow, because of her birthday!

Socials