samtx / passpredict

Predict upcoming satellite overpasses over a point on Earth.
MIT License
23 stars 6 forks source link

Create JSON output for Overpass, Location, Satellite, and Point objects. #1

Closed samtx closed 4 years ago

samtx commented 4 years ago

The JSON output should be in a string format. JSON strings will help to natively print tables and other output formats. The passpredict-api will use byte output optimized for web traffic.

The standard json module outputs as string while the orjson module outputs as bytes. Since using the orjson module would add an unnecessary dependency, stick to using the standard library json here and only use orjson in the passpredict-api.

samtx commented 4 years ago

Using pydantic to serialize overpass objects into JSON schemas.