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
Lightning FastAPI

Lightning FastAPI Lightning FastAPI framework, provides boiler plates for FastAPI based on Django Framework Explaination / | │ manage.py │ README.

Rajesh Joshi 1 Oct 15, 2021
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
Utils for fastapi based services.

Installation pip install fastapi-serviceutils Usage For more details and usage see: readthedocs Development Getting started After cloning the repo

Simon Kallfass 31 Nov 25, 2022
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

BnademOverflow 53 Dec 29, 2022
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
A Sample App to Demonstrate React Native and FastAPI Integration

React Native - Service Integration with FastAPI Backend. A Sample App to Demonstrate React Native and FastAPI Integration UI Based on NativeBase toolk

YongKi Kim 4 Nov 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,

0 Sep 24, 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 Flask extension that enables or disables features based on configuration.

Flask FeatureFlags This is a Flask extension that adds feature flagging to your applications. This lets you turn parts of your site on or off based on

Rachel Greenfield 131 Sep 26, 2022
A dynamic FastAPI router that automatically creates CRUD routes for your models

⚡ Create CRUD routes with lighting speed ⚡ A dynamic FastAPI router that automatically creates CRUD routes for your models Documentation: https://fast

Adam Watkins 943 Jan 01, 2023
Sample project showing reliable data ingestion application using FastAPI and dramatiq

Create and deploy a reliable data ingestion service with FastAPI, SQLModel and Dramatiq This is the source code for the data ingestion service explain

François Voron 31 Nov 30, 2022
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
Mixer -- Is a fixtures replacement. Supported Django, Flask, SqlAlchemy and custom python objects.

The Mixer is a helper to generate instances of Django or SQLAlchemy models. It's useful for testing and fixture replacement. Fast and convenient test-

Kirill Klenov 871 Dec 25, 2022
Twitter API monitor with fastAPI + MongoDB

Twitter API monitor with fastAPI + MongoDB You need to have a file .env with the following variables: DB_URL="mongodb+srv://mongodb_path" DB_URL2=

Leonardo Ferreira 3 Apr 08, 2022
Cbpa - Coinbase Pro Automation for buying your favourite cryptocurrencies

cbpa Coinbase Pro Automation for making buy orders from a default bank account.

Anthony Corletti 3 Nov 27, 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
A Python framework to build Slack apps in a flash with the latest platform features.

Bolt for Python A Python framework to build Slack apps in a flash with the latest platform features. Read the getting started guide and look at our co

SlackAPI 684 Jan 09, 2023
Farlimit - FastAPI rate limit with python

FastAPIRateLimit Contributing is F&E (free&easy) Y Usage pip install farlimit N

omid 27 Oct 06, 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
🐍 Simple FastAPI template with factory pattern architecture

Description This is a minimalistic and extensible FastAPI template that incorporates factory pattern architecture with divisional folder structure. It

Redowan Delowar 551 Dec 24, 2022