Skip to content

supremefuckery/FastApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

FastApi

A web framework for building APIs quickly and efficiently.

What is FastApi?

FastApi is a lightweight framework designed to help developers build robust and scalable APIs with minimal effort. It supports asynchronous programming and automatic API documentation.

Installation

To get started, install the framework using pip:

pip install fastapi

You'll also need an ASGI server like uvicorn:

pip install uvicorn

Running the App

To run the app, navigate to the project directory and execute:

uvicorn main:app --reload

Replace main with the name of your main application file.

Example

Here's a simple example to get you started:

from fastapi import FastAPI

app = FastAPI()

@app.get("/")
def read_root():
    return {"Hello": "World"}

This creates a basic API with a single endpoint that returns a JSON response. You can access it by visiting http://localhost:8000 in your web browser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors