Git Product home page Git Product logo

learn-fastapi's Introduction

Learn FastAPI

command to run the app

uvicorn app.main:app --reload

pydantic

https://pydantic-docs.helpmanual.io/#rationale

pydantic is primarily a parsing library, not a validation library. Validation is a means to an end: building a model which conforms to the types and constraints provided. In other words, pydantic guarantees the types and constraints of the output model, not the input data. This might sound like an esoteric distinction, but it is not. If you're unsure what this means or how it might affect your usage you should read the section about Data Conversion below. Although validation is not the main purpose of pydantic, you can use this library for custom validation.

psycopyg

Driver to talk to the database server and perform SQL queries on that.

Object Relational Mapper

--> Performing the database operations using the traditional programming language and not the query language of the dbms.

SQLAlchemy

https://www.sqlalchemy.org/

SQLAlchemy is most famous for its object-relational mapper (ORM), an optional component that provides the data mapper pattern, where classes can be mapped to the database in open ended, multiple ways - allowing the object model and database schema to develop in a cleanly decoupled way from the beginning.

JWT token

The token contains the information which asserts if a client is authenticated or not. It looks like a encrypted string but it is not encrypted.

Alembic

Migration tool that works with SQLAlchemy. It reads our models and create the corresponding tables and column.

Hosting

1. Heroku

  • Login
  • Create app
  • Initialise Procfile
  • Install Postgres
    • Initialise env variables
  • Run migrations using heroku run "alembic upgrade head" command

learn-fastapi's People

Contributors

mnttnm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.