This repo for a sample satellite app built with python
To get this Python application running locally:
- Clone this repo
pip install -r requirementsto install all required dependenciesuvicorn main:app --reloadto start the local server
Open http://localhost:8000 with your browser to see the result.
- 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
main.py- The entry point to our application. This file defines our fastapi server and performs background polling logic for satellite api
The REST API to the example app is described below.
GET /api/stats
curl --location --request GET 'http://localhost:8000/api/stats'
{
"data": {
"minimum": null,
"maximum": null,
"average": 0
}
}
GET /api/health
curl --location --request GET 'http://localhost:8000/api/health'
{
"data": {
"message": "Sustained Low Earth Orbit Resumed",
"average": 171.16908827883267
}
}