SpaceTrack operators

Refer to REST Operators in the Space-Track documentation.

spacetrack.operators._stringify_predicate_value(value)

Convert Python objects to Space-Track compatible strings

  • Booleans (True -> 'true')
  • Sequences ([25544, 34602] -> '25544,34602')
  • dates/datetimes (date(2015, 12, 23) -> '2015-12-23')
  • None -> 'null-val'
spacetrack.operators.greater_than(value)

'>value'.

spacetrack.operators.inclusive_range(left, right)

'left--right'.

spacetrack.operators.less_than(value)

'<value'.

spacetrack.operators.like(value)

'~~value'.

spacetrack.operators.not_equal(value)

'<>value'.

spacetrack.operators.startswith(value)

'^value'.