SpaceTrackApi client
Small helper for https://space-track.org query api.
Requirements
requests >= 2.14.2
Installing
pip install space-track-api
Getting started
To retrieve something from Space-Track:
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from pprint import pprint
from space_track_api import SpaceTrackApi
def main():
with SpaceTrackApi(login='<YOUR_LOGIN>', password='<YOUR_PASSWORD>') as api:
tle_list = api.tle(EPOCH='>now-3',
NORAD_CAT_ID=(25544, 25541,),
order_by=('EPOCH desc', 'NORAD_CAT_ID',),
predicate=('EPOCH', 'NORAD_CAT_ID', 'TLE_LINE0', 'TLE_LINE1', 'TLE_LINE2',))
pprint(tle_list, indent=2)
if __name__ == '__main__':
main()
Source code
The latest developer version is available in a github repository: https://github.com/nkoshell/space-track-api
Metadata
Release files for space-track-api 1.0.2
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 |
|---|---|---|---|---|
| space-track-api-1.0.2.tar.gz | 5.2 kB | Without provenance | Details for space-track-api-1.0.2.tar.gz |
Release files / space-track-api-1.0.2.tar.gz
| Download URL | space-track-api-1.0.2.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab7d602061349f298c07da4ca8e0e1ac12bb62dad505e43d8ba99b6b2b3874ec
|
|
BLAKE2b-256 checksum How to use checksums |
b7cf8f0b4c5bd6a9d2aeaef903ade0ed1331b28545dc5e50a7b0718cc031490a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for space-track-api 1.0.2
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.