iausathub / satchecker

IAU CPS SatHub tool for satellite position prediction
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

Add ability to retrieve recent TLE data #96

Closed mdadighat closed 3 weeks ago

mdadighat commented 1 month ago

Description:

Add an endpoint to the tools section to get the most recent TLE for any satellite with has_current_sat_number set to true

Context:

We need access for collaborators to use TLE data and full database access is an unknown for now, so this should hopefully cover the majority of cases. In future we might protect this endpoint with an API key

github-actions[bot] commented 1 month ago

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/api
   satchecker.py110%1
src/api/adapters/repositories
   satellite_repository.py54493%29, 33, 37, 41
   tle_repository.py891089%63, 69, 75, 84, 93, 97, 101, 220–235
src/api/domain/models
   tle.py19195%52
src/api/entrypoints
   extensions.py10190%32
src/api/entrypoints/v1/routes
   routes.py371073%22, 63, 92, 114–126
   tools_routes.py571082%50–52, 87–89, 156–165
src/api/services
   tools_service.py20480%67–91
   validation_service.py112199%139
src/api/services/tasks
   ephemeris_tasks.py40782%56, 81, 126, 130, 158, 179–182
src/api/utils
   coordinate_systems.py138199%458
   propagation_strategies.py65198%123
TOTAL9095194% 

Tests Skipped Failures Errors Time
97 0 :zzz: 0 :x: 0 :fire: 10.841s :stopwatch: