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
Stac-fastapi built on Tile38 and Redis to support caching

stac-fastapi-caching Stac-fastapi built on Tile38 to support caching. This code is built on top of stac-fastapi-elasticsearch 0.1.0 with pyle38, a Pyt

Jonathan Healy 4 Apr 11, 2022
스타트업 개발자 채용

스타트업 개발자 채용 大 박람회 Seed ~ Series B에 있는 스타트업을 위한 채용정보 페이지입니다. Back-end, Frontend, Mobile 등 개발자를 대상으로 진행하고 있습니다. 해당 스타트업에 종사하시는 분뿐만 아니라 채용 관련 정보를 알고 계시다면

JuHyun Lee 58 Dec 14, 2022
Fetching Cryptocurrency Prices from Coingecko and Displaying them on Grafana

cryptocurrency-prices-grafana Fetching Cryptocurrency Prices from Coingecko and Displaying them on Grafana About This stack consists of: Prometheus (t

Ruan Bekker 7 Aug 01, 2022
A simple example of deploying FastAPI as a Zeit Serverless Function

FastAPI Zeit Now Deploy a FastAPI app as a Zeit Serverless Function. This repo deploys the FastAPI SQL Databases Tutorial to demonstrate how a FastAPI

Paul Weidner 26 Dec 21, 2022
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

Leo Sussan 351 Jan 04, 2023
MQTT FastAPI Wrapper With Python

mqtt-fastapi-wrapper Quick start Create mosquitto.conf with the following content: ➜ /tmp cat mosquitto.conf persistence false allow_anonymous true

Vitalii Kulanov 3 May 09, 2022
A comprehensive CRUD API generator for SQLALchemy.

FastAPI Quick CRUD Introduction Advantage Constraint Getting started Installation Usage Design Path Parameter Query Parameter Request Body Upsert Intr

192 Jan 06, 2023
Dead-simple mailer micro-service for static websites

Mailer Dead-simple mailer micro-service for static websites A free and open-source software alternative to contact form services such as FormSpree, to

Romain Clement 42 Dec 21, 2022
京东图片点击验证码识别

京东图片验证码识别 本项目是@yqchilde 大佬的 JDMemberCloseAccount 识别图形验证码(#45)思路验证,若你也有思路可以提交Issue和PR也可以在 @yqchilde 的 TG群 找到我 声明 本脚本只是为了学习研究使用 本脚本除了采集处理验证码图片没有其他任何功能,也

AntonVanke 37 Dec 22, 2022
A rate limiter for Starlette and FastAPI

SlowApi A rate limiting library for Starlette and FastAPI adapted from flask-limiter. Note: this is alpha quality code still, the API may change, and

Laurent Savaete 562 Jan 01, 2023
FastAPI backend for Repost

Repost FastAPI This is the FastAPI implementation of the Repost API. Installation Python 3 must be installed and accessible through the use of a termi

PC 7 Jun 15, 2021
SuperSaaSFastAPI - Python SaaS Boilerplate for building Software-as-Service (SAAS) apps with FastAPI, Vue.js & Tailwind

Python SaaS Boilerplate for building Software-as-Service (SAAS) apps with FastAP

Rudy Bekker 31 Jan 10, 2023
This project shows how to serve an ONNX-optimized image classification model as a web service with FastAPI, Docker, and Kubernetes.

Deploying ML models with FastAPI, Docker, and Kubernetes By: Sayak Paul and Chansung Park This project shows how to serve an ONNX-optimized image clas

Sayak Paul 104 Dec 23, 2022
Prometheus exporter for several chia node statistics

prometheus-chia-exporter Prometheus exporter for several chia node statistics It's assumed that the full node, the harvester and the wallet run on the

30 Sep 19, 2022
Basic fastapi blockchain - An api based blockchain with full functionality

Basic fastapi blockchain - An api based blockchain with full functionality

1 Nov 27, 2021
cookiecutter template for web API with python

Python project template for Web API with cookiecutter What's this This provides the project template including minimum test/lint/typechecking package

Hitoshi Manabe 4 Jan 28, 2021
Keepalive - Discord Bot to keep threads from expiring

keepalive Discord Bot to keep threads from expiring Installation Create a new Di

Francesco Pierfederici 5 Mar 14, 2022
This repository contains learning resources for Python Fast API Framework and Docker

This repository contains learning resources for Python Fast API Framework and Docker, Build High Performing Apps With Python BootCamp by Lux Academy and Data Science East Africa.

Harun Mbaabu Mwenda 23 Nov 20, 2022
Keycloak integration for Python FastAPI

FastAPI Keycloak Integration Documentation Introduction Welcome to fastapi-keycloak. This projects goal is to ease the integration of Keycloak (OpenID

Code Specialist 113 Dec 31, 2022
FastAPI interesting concepts.

fastapi_related_stuffs FastAPI interesting concepts. FastAPI version :- 0.70 Python3 version :- 3.9.x Steps Test Django Like settings export FASTAPI_S

Mohd Mujtaba 3 Feb 06, 2022