Skip to main content

A Python API for querying space-track.org

Project description

SpaceTrackTool
==============

.. highlight:: python

A Python API for making queries to space-track.org_. To install::

$ pip install spacetracktool

To use, first get a username and password for space-track.org_, then create a
query of the desired class. For example, to create a TLE query::

>> import spacetracktool as st
>> query = st.SpaceTrackClient(username, password)
>> query.tle_query(norad_cat_id=12345) # look for a specific satellite ID
>> result = query.submit() # submit to space-track.org and return the result

To create a slightly more complicated query, using ranges for some arguments::

>> import spacetracktool as st
>> import spacetracktool.operations as ops
>> query = st.SpaceTrackClient(username, password)
>> date_range = ops.make_range_string('2018-01-01', '2018-01-31')
>> query.tle_query(epoch=date_range)
>> result = query.submit()

The official documents for the `space-track.org API can be found here`__.

__ https://www.space-track.org/documentation#/api

.. _space-track.org: https://www.space-track.org/auth/login

Project details


Download files

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

Source Distribution

spacetracktool-0.1.0b3.tar.gz (10.4 kB view details)

Uploaded Source

File details

Details for the file spacetracktool-0.1.0b3.tar.gz.

File metadata

File hashes

Hashes for spacetracktool-0.1.0b3.tar.gz
Algorithm Hash digest
SHA256 a55a757a40f18b5bbb796628d09aa4c62efb4e1d6ab763cacffa943cb96dfbb0
MD5 dedb0857d6046055441a80f1ff0d8171
BLAKE2b-256 e49cea1ead406f934eec879d62c1b4fe2f64455a646aa0395c6a993e87f7ada9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page