Skip to content

phyique/satellite_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample

This repo for a sample satellite app built with python

Getting started

To get this Python application running locally:

  • Clone this repo
  • pip install -r requirements to install all required dependencies
  • uvicorn main:app --reload to start the local server

Open http://localhost:8000 with your browser to see the result.

Code Overview

Dependencies

  • fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production
  • requests - Simplified HTTP request client.
  • apscheduler - Task scheduling library for Python
  • ...to be continued

Application Structure

  • main.py - The entry point to our application. This file defines our fastapi server and performs background polling logic for satellite api

REST API

The REST API to the example app is described below.

Request

GET /api/stats

curl --location --request GET 'http://localhost:8000/api/stats'

Response

{
    "data": {
        "minimum": null,
        "maximum": null,
        "average": 0
    }
}

Request

GET /api/health

curl --location --request GET 'http://localhost:8000/api/health' 

Response

{
    "data": {
        "message": "Sustained Low Earth Orbit Resumed",
        "average": 171.16908827883267
    }
}

About

A satellite monitoring application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages