Code Monkey home page Code Monkey logo

people's Introduction

people

Description

Backend application made with Python's FastAPI framework and Hexagonal Architecture. It expose 4 endpoints:

  • Create multiple people
  • Get average age of people by country
  • Get number of people from each country
  • Get the gender repartition for a given country

Overview

  • Language: Python3.10
  • Web Framework: FastAPI
  • Production web server: Uvicorn
  • Relational database: SQLite
  • Relational ORM: SQLAlchemy
  • Data parsing and validation: Pydantic
  • Testing: Pytest, Starlette
  • Linter: Flake8
  • Formatter: Black

Installation

Install requirements: pip install -r requirements.txt

Run the app: uvicorn people.main:app

Run tests: pytest -vv

Swagger: http://<hostname>:8000/docs

Disclaimer

This is not a production code. The purpose of this code is to test hexagonal architecture with minimalist FastAPI application. Technical choices were made that may not prioritize security.

Walkthrough

You can found my notebook here

people's People

Contributors

sinhb avatar

Watchers

Kevin T. avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.