SpaceTrackApi client
Small async wrapper for nasa-tle-loader package
Requirements
aiohttp >= 2.0.7
nasa-tle-loader >= 1.0.0
Installing
pip install aio-nasa-tle-loader
Getting started
To retrieve something from Space-Track:
# -*- coding: utf-8 -*-
import asyncio
import json
from aio_nasa_tle_loader import AsyncNasaTLELoader
async def main(loop):
async with AsyncNasaTLELoader(loop=loop) as loader:
# Getting list `nasa_tle_loader.TLE`(namedtuple like) objects
tle_list = await loader()
# Print result as JSON
print(json.dumps([tle.as_dict() for tle in tle_list[:3]], indent=2))
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop))
Result:
[
{
"EPOCH": "2017-05-17 13:16:58",
"EPOCH_MICROSECONDS": "124064",
"NORAD_CAT_ID": "25544",
"TLE_LINE0": "ISS",
"TLE_LINE1": "1 25544U 98067A 17137.55345051 .00016717 00000-0 10270-3 0 9004",
"TLE_LINE2": "2 25544 51.6389 191.0057 0005051 169.7469 190.3787 15.54030000 16987"
},
{
"EPOCH": "2017-05-17 22:32:35",
"EPOCH_MICROSECONDS": "151072",
"NORAD_CAT_ID": "25544",
"TLE_LINE0": "ISS",
"TLE_LINE1": "1 25544U 98067A 17137.93929573 .00016717 00000-0 10270-3 0 9014",
"TLE_LINE2": "2 25544 51.6398 189.0848 0005258 166.2909 193.8387 15.53887043 17040"
},
{
"EPOCH": "2017-05-18 01:37:47",
"EPOCH_MICROSECONDS": "963136",
"NORAD_CAT_ID": "25544",
"TLE_LINE0": "ISS",
"TLE_LINE1": "1 25544U 98067A 17138.06791624 .00016717 00000-0 10270-3 0 9024",
"TLE_LINE2": "2 25544 51.6394 188.4430 0005111 170.0057 190.1198 15.53888284 17061"
}
]
Source code
The latest developer version is available in a github repository: https://github.com/nkoshell/aio-nasa-tle-loader
Metadata
Release files for aio-nasa-tle-loader 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aio-nasa-tle-loader-1.0.0.tar.gz | 3.8 kB | Without provenance | Details for aio-nasa-tle-loader-1.0.0.tar.gz |
Release files / aio-nasa-tle-loader-1.0.0.tar.gz
| Download URL | aio-nasa-tle-loader-1.0.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb948754216a940ae18a36633a6378bde6eca9ee5c429f2aaae42547f5f12037
|
|
BLAKE2b-256 checksum How to use checksums |
0fe14221164663478507f99a1273cabce69f4d1a786c1f59e4b01a6f0bb8efce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for aio-nasa-tle-loader 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.