GithubHelp home page GithubHelp logo

planetary-api's Introduction

Planetary API 🌏

Python Flask JWT Sequelize Postman PyCharm FastAPI


Overview

  1. Build a Restful API using Flask for Web app , Mobile app, Desktop app.
  2. Testing of API is done by using POSTMAN application and soon will be done by automation scripts using selenium , unittest libraries.
  3. For this API Database is SQLAlchemy. It is easy to use.

Prerequisite

  • Python
  • SQL Database
  • JSON
  • OS library

File Structure

Planetary API
    β”œβ”€β”€ app.py
    β”œβ”€β”€ doc.txt
    β”œβ”€β”€ planets.db
    β”œβ”€β”€ requirements.txt
    

API Features

  1. List all known planets
  2. Register new Users
  3. Authenticate existing users
  4. Add new planetary discoveries to the database
  5. Update existing planetary data
  6. Delete planets when necessary

Benefits of an ORM (Object–relational mapping)

  1. Works with Python objects, not SQL.
  2. Allows you to switch your database easily.
  3. You can control the structure of your database from your code, which can be managed by a revision control system like Git.
  4. Supports multiple databases platforms.

Securing API

  1. Securing Your API with JSON Web Tokens (JWTs)
  2. Flask-Mail -- for Email
  3. Flask-Login -- For Login
  4. Flask-User -- For User

ORM Tool

  1. Marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.
  2. Flask-Marshmallow is a thin integration layer for Flask and marshmallow that adds additional features to marshmallow.
  3. marshmallow-sqlalchemy An SQLAlchemy integration with the marshmallow (de)serialization library.


PyCharm Gmail LinkedIn

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.