Skip to content

Files

Latest commit

76b7d89 · Jun 25, 2022

History

History

pyweather

Intro

Tools needed today:

  • httpie
  • pipx
  • poetry
$ pip install --user pipx
...
$ py.exe -m pipx ensurepath --force
...
# at this point, close and re-launch your terminal
$ pipx install httpie
...
$ pipx install poetry
...

FastAPI

FastAPI is a web framework for quickly building webapis. It works by registering functions and abstracting away the lower level infrastructure like manually listening to sockets or parsing text into Python objects. It registers your functions by using a feature of Python called decorators. Decorators are plain Python functions that accept a function as an argument and returns a different function, modifying the behavior of the original function.