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
Opentracing support for Starlette and FastApi

Starlette-OpenTracing OpenTracing support for Starlette and FastApi. Inspired by: Flask-OpenTracing OpenTracing implementations exist for major distri

Rene Dohmen 63 Dec 30, 2022
Complete Fundamental to Expert Codes of FastAPI for creating API's

FastAPI FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3 based on standard Python type hints. The key featu

Pranav Anand 1 Nov 28, 2021
API for Submarino store

submarino-api API for the submarino e-commerce documentation read the documentation in: https://submarino-api.herokuapp.com/docs or in https://submari

Miguel 1 Oct 14, 2021
Code Specialist 27 Oct 16, 2022
์Šคํƒ€ํŠธ์—… ๊ฐœ๋ฐœ์ž ์ฑ„์šฉ

์Šคํƒ€ํŠธ์—… ๊ฐœ๋ฐœ์ž ์ฑ„์šฉ ๅคง ๋ฐ•๋žŒํšŒ Seed ~ Series B์— ์žˆ๋Š” ์Šคํƒ€ํŠธ์—…์„ ์œ„ํ•œ ์ฑ„์šฉ์ •๋ณด ํŽ˜์ด์ง€์ž…๋‹ˆ๋‹ค. Back-end, Frontend, Mobile ๋“ฑ ๊ฐœ๋ฐœ์ž๋ฅผ ๋Œ€์ƒ์œผ๋กœ ์ง„ํ–‰ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ํ•ด๋‹น ์Šคํƒ€ํŠธ์—…์— ์ข…์‚ฌํ•˜์‹œ๋Š” ๋ถ„๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ์ฑ„์šฉ ๊ด€๋ จ ์ •๋ณด๋ฅผ ์•Œ๊ณ  ๊ณ„์‹œ๋‹ค๋ฉด

JuHyun Lee 58 Dec 14, 2022
Learn to deploy a FastAPI application into production DigitalOcean App Platform

Learn to deploy a FastAPI application into production DigitalOcean App Platform. This is a microservice for our Try Django 3.2 project. The goal is to extract any and all text from images using a tec

Coding For Entrepreneurs 59 Nov 29, 2022
FastAPI client generator

FastAPI-based API Client Generator Generate a mypy- and IDE-friendly API client from an OpenAPI spec. Sync and async interfaces are both available Com

David Montague 283 Jan 04, 2023
A minimal FastAPI implementation for Django !

Caution!!! This project is in early developing stage. So use it at you own risk. Bug reports / Fix PRs are welcomed. Installation pip install django-m

toki 23 Dec 24, 2022
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

Nick Hopewell 67 Dec 14, 2022
Formatting of dates and times in Flask templates using moment.js.

Flask-Moment This extension enhances Jinja2 templates with formatting of dates and times using moment.js. Quick Start Step 1: Initialize the extension

Miguel Grinberg 358 Nov 28, 2022
Adds GraphQL support to your Flask application.

Flask-GraphQL Adds GraphQL support to your Flask application. Usage Just use the GraphQLView view from flask_graphql from flask import Flask from flas

GraphQL Python 1.3k Dec 31, 2022
Qwerkey is a social media platform for connecting and learning more about mechanical keyboards built on React and Redux in the frontend and Flask in the backend on top of a PostgreSQL database.

Flask React Project This is the backend for the Flask React project. Getting started Clone this repository (only this branch) git clone https://github

Peter Mai 22 Dec 20, 2022
Redis-based rate-limiting for FastAPI

Redis-based rate-limiting for FastAPI

Glib 6 Nov 14, 2022
FastAPI application and service structure for a more maintainable codebase

Abstracting FastAPI Services See this article for more information: https://camillovisini.com/article/abstracting-fastapi-services/ Poetry poetry inst

Camillo Visini 309 Jan 04, 2023
Voucher FastAPI

Voucher-API Requirement Docker Installed on system Libraries Pandas Psycopg2 FastAPI PyArrow Pydantic Uvicorn How to run Download the repo on your sys

Hassan Munir 1 Jan 26, 2022
Dead simple CSRF security middleware for Starlette โญ and Fast API โšก

csrf-starlette-fastapi Dead simple CSRF security middleware for Starlette โญ and Fast API โšก Will work with either a input type="hidden" field or ajax

Nathaniel Sabanski 9 Nov 20, 2022
Run your jupyter notebooks as a REST API endpoint. This isn't a jupyter server but rather just a way to run your notebooks as a REST API Endpoint.

Jupter Notebook REST API Run your jupyter notebooks as a REST API endpoint. This isn't a jupyter server but rather just a way to run your notebooks as

Invictify 54 Nov 04, 2022
Easily integrate socket.io with your FastAPI app ๐Ÿš€

fastapi-socketio Easly integrate socket.io with your FastAPI app. Installation Install this plugin using pip: $ pip install fastapi-socketio Usage To

Srdjan Stankovic 210 Dec 23, 2022
Single Page App with Flask and Vue.js

Developing a Single Page App with FastAPI and Vue.js Want to learn how to build this? Check out the post. Want to use this project? Build the images a

91 Jan 05, 2023
A fast and durable Pub/Sub channel over Websockets. FastAPI + WebSockets + PubSub == โšก ๐Ÿ’ช โค๏ธ

โšก ๐Ÿ—ž๏ธ FastAPI Websocket Pub/Sub A fast and durable Pub/Sub channel over Websockets. The easiest way to create a live publish / subscribe multi-cast ov

8 Dec 06, 2022