Skip to main content

Small helper for `` query api.

Project description

SpaceTrackApi client

Small helper for query api.


  • requests >= 2.14.2


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__':

Source code

The latest developer version is available in a github repository:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for space-track-api, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size space-track-api-1.0.2.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page