API using python and Fastapi framework

Overview

Welcome 👋

CFCApi is a API DEVELOPMENT PROJECT UNDER CODE FOR COMMUNITY !

Project Walkthrough 🚀

  • CFCApi run on Python using FASTapi Framework Docs
  • The project is under the Guidance of Abhishek Kushwaha

Installation ☘️

  • To install The Fastapi on the system

    pip install fastapi
    
  • To install all the dependiencies at once use :

    pip install fastapi[all]
    
  • Run the server in LocalHost:

    uvicorn main:app --reload
    
  • Open your browser at !

    http://127.0.0.1:8000/
    
  • Interactive API doc

    http://127.0.0.1:8000/docs 
    

Sample code 🛠

import datetime
from typing import Optional
import time
from datetime import date, time,datetime
from fastapi import FastAPI

app = FastAPI()


@app.get("/")
def read_root():
    return {"Messgaes": "Hey viewer ! i made it man !","Author":"Abhishek Kushwaha"}


@app.get("/items/{item_id}")
def read_item(item_id: int, q: Optional[str] = None):
    return {"item_id": item_id, "q": q}

@app.get("/author/{author_id}/{q}")
def read_item(author_id: int, q: Optional[str] = None):
    return {"item_id": author_id, "request": q ,"name":"Abhishek kushwaha"}

🙏 Support

-This project needs a ⭐️ from you. Don't forget to leave a star ⭐️

-Follow me here

-Contributions to the project are most welcome! 😊

-Feel free to fork this repo and contribute. 🔧

-Thank You! 👍

You might also like...
Boilerplate code for quick docker implementation of REST API with JWT Authentication using FastAPI, PostgreSQL and PgAdmin ⭐

FRDP Boilerplate code for quick docker implementation of REST API with JWT Authentication using FastAPI, PostgreSQL and PgAdmin ⛏ . Getting Started Fe

A RESTful API for creating and monitoring resource components of a hypothetical build system. Built with FastAPI and pydantic. Complete with testing and CI.
A RESTful API for creating and monitoring resource components of a hypothetical build system. Built with FastAPI and pydantic. Complete with testing and CI.

diskspace-monitor-CRUD Background The build system is part of a large environment with a multitude of different components. Many of the components hav

High-performance Async REST API, in Python. FastAPI + GINO + Arq + Uvicorn (w/ Redis and PostgreSQL).

fastapi-gino-arq-uvicorn High-performance Async REST API, in Python. FastAPI + GINO + Arq + Uvicorn (powered by Redis & PostgreSQL). Contents Get Star

A FastAPI Framework for things like Database, Redis, Logging, JWT Authentication and Rate Limits

A FastAPI Framework for things like Database, Redis, Logging, JWT Authentication and Rate Limits Install You can install this Library with: pip instal

API Simples com python utilizando a biblioteca FastApi
API Simples com python utilizando a biblioteca FastApi

api-fastapi-python API Simples com python utilizando a biblioteca FastApi Para rodar esse script são necessárias duas bibliotecas: Fastapi: Comando de

REST API with FastAPI and JSON file.
REST API with FastAPI and JSON file.

FastAPI RESTAPI with a JSON py 3.10 First, to install all dependencies, in ./src/: python -m pip install -r requirements.txt Second, into the ./src/

 REST API with FastAPI and PostgreSQL
REST API with FastAPI and PostgreSQL

REST API with FastAPI and PostgreSQL To have the same data in db: create table CLIENT_DATA (id SERIAL PRIMARY KEY, fullname VARCHAR(50) NOT NULL,email

FastAPI framework plugins

Plugins for FastAPI framework, high performance, easy to learn, fast to code, ready for production fastapi-plugins FastAPI framework plugins Cache Mem

FastAPI framework plugins

Plugins for FastAPI framework, high performance, easy to learn, fast to code, ready for production fastapi-plugins FastAPI framework plugins Cache Mem

Comments
  • voting system

    voting system

    create a voting system for the post with attributes of post_id and user_id as composite key

    • make dir with 0 and 1
    • 1 means the user want to vote
    • 0 means the user want to unvote but should have voted the post previously ....
    opened by Abbhiishek 0
  • Update Post Functionality

    Update Post Functionality

    Create a update post functionality in app/main.py

    • https://github.com/Abbhiishek/Sociome/blob/main/app/main.py
    • Make sure you have a look at schemas......
    • Fork the repository and make changes to the forked Repos(with a branch name as update_post)
    • Create a PR .
    • Simple !
    enhancement good first issue 
    opened by Abbhiishek 0
Releases(v1.0.1)
  • v1.0.1(Feb 21, 2022)

    What's Changed

    • Vote System For The Post by @Abbhiishek in https://github.com/Abbhiishek/Sociome/pull/13
    • Votes , Alembic and much more by @Abbhiishek in https://github.com/Abbhiishek/Sociome/pull/15

    Full Changelog: https://github.com/Abbhiishek/Sociome/compare/v1.0...v1.0.1

    Source code(tar.gz)
    Source code(zip)
  • v1.0(Feb 20, 2022)

    We are now supporting with user login and authentication

    What's Changed

    • Reference to the issue #1 by @Abbhiishek in https://github.com/Abbhiishek/Sociome/pull/2
    • Update README.md by @Abbhiishek in https://github.com/Abbhiishek/Sociome/pull/3
    • added image to post attribute issue #7 by @Abbhiishek in https://github.com/Abbhiishek/Sociome/pull/6
    • Merge pull request #6 from Abbhiishek/updated_post by @koushik-das123 in https://github.com/Abbhiishek/Sociome/pull/8
    • Updated post #5 by @Abbhiishek in https://github.com/Abbhiishek/Sociome/pull/9
    • GUIDE UPDATED by @anjalig18 in https://github.com/Abbhiishek/Sociome/pull/11

    New Contributors

    • @Abbhiishek made their first contribution in https://github.com/Abbhiishek/Sociome/pull/2
    • @koushik-das123 made their first contribution in https://github.com/Abbhiishek/Sociome/pull/8
    • @anjalig18 made their first contribution in https://github.com/Abbhiishek/Sociome/pull/11

    Full Changelog: https://github.com/Abbhiishek/Sociome/commits/v1.0

    Source code(tar.gz)
    Source code(zip)
Owner
Abhishek kushwaha
Typical Ambivert | Founder at Code For Community
Abhishek kushwaha
Flask-vs-FastAPI - Understanding Flask vs FastAPI Web Framework. A comparison of two different RestAPI frameworks.

Flask-vs-FastAPI Understanding Flask vs FastAPI Web Framework. A comparison of two different RestAPI frameworks. IntroductionIn Flask is a popular mic

Mithlesh Navlakhe 1 Jan 1, 2022
API using python and Fastapi framework

Welcome ?? CFCApi is a API DEVELOPMENT PROJECT UNDER CODE FOR COMMUNITY ! Project Walkthrough ?? CFCApi run on Python using FASTapi Framework Docs The

Abhishek kushwaha 7 Jan 2, 2023
Sample-fastapi - A sample app using Fastapi that you can deploy on App Platform

Getting Started We provide a sample app using Fastapi that you can deploy on App

Erhan BÜTE 2 Jan 17, 2022
This is an API developed in python with the FastApi framework and putting into practice the recommendations of the book Clean Architecture in Python by Leonardo Giordani,

This is an API developed in python with the FastApi framework and putting into practice the recommendations of the book Clean Architecture in Python by Leonardo Giordani,

null 0 Sep 24, 2022
Fastapi-ml-template - Fastapi ml template with python

FastAPI ML Template Run Web API Local $ sh run.sh # poetry run uvicorn app.mai

Yuki Okuda 29 Nov 20, 2022
fastapi-admin2 is an upgraded fastapi-admin, that supports ORM dialects, true Dependency Injection and extendability

FastAPI2 Admin Introduction fastapi-admin2 is an upgraded fastapi-admin, that supports ORM dialects, true Dependency Injection and extendability. Now

Glib 14 Dec 5, 2022
:rocket: CLI tool for FastAPI. Generating new FastAPI projects & boilerplates made easy.

Project generator and manager for FastAPI. Source Code: View it on Github Features ?? Creates customizable project boilerplate. Creates customizable a

Yagiz Degirmenci 1k Jan 2, 2023
Пример использования GraphQL Ariadne с FastAPI и сравнение его с GraphQL Graphene FastAPI

FastAPI Ariadne Example Пример использования GraphQL Ariadne с FastAPI и сравнение его с GraphQL Graphene FastAPI - GitHub ###Запуск на локальном окру

ZeBrains Team 9 Nov 10, 2022
FastAPI Server Session is a dependency-based extension for FastAPI that adds support for server-sided session management

FastAPI Server-sided Session FastAPI Server Session is a dependency-based extension for FastAPI that adds support for server-sided session management.

DevGuyAhnaf 5 Dec 23, 2022
Code Specialist 27 Oct 16, 2022