N/A
- The deprecation warning about importing
Sequence
orMapping
fromcollections
instead ofcollections.abc
.
- The
async
extra installs aiohttp 2 becausespacetrack
is not yet aiohttp 3 compatible. - Deprecation warnings about invalid escape sequences.
spacetrack
can be installed with setuptools v38.0+, which requiresinstall_requires
insetup.py
to be ordered.
parse_types
flag to optionally parse types as described by themodeldef
API.- Compatibility with
maneuver
andmaneuver_history
request classes forexpandedspacedata
request controller. - Compatibility with
upload
anddelete
request classes forfileshare
request controller.
- Predicates with the enum type are parsed correctly. Previously, single-valued
enums had
None
as a second value, and enums with more than two values only had the first and last value due to the regex match not capturing repeated groups. The values aren't used byspacetrack
, so the bug went unnoticed. - Exception on Python 3.5+ in threads without an
asyncio
event loop (even using the normalSpaceTrackClient
). Fixed by requiringratelimiter
>= 1.2.0
- Require aiohttp >= 2.0 for the
async
extra.
- Request controller can be passed explicitly to methods that take a request class, because some request classes are present in more than one controller.
- Request controller proxy attribute, e.g.
SpaceTrackClient.fileshare.file()
, which is equivalent toSpaceTrackClient.generic_request('file', controller='fileshare')
. dir(SpaceTrackClient(...))
now includes the request controllers and request classes so it's easier to see what can be called.
/modeldef
API not queried if no predicates are passed. This allowsspephemeris/download
to be used, which doesn't have a model definition.
- Calling request class methods uses first request controller that matches. The
order is stored in the keys of the
SpaceTrackClient.request_controllers
ordered dict, currentlybasicspacedata
,expandedspacedata
,fileshare
,spephemeris
. Any new request controllers will be added to the end, to preserve lookup order. New request classes that would change the order will accompany a major version bump. AsyncSpaceTrackClient
uses requests' CA file for same experience with both clients.
- Bump ratelimiter version to improve rate limiting for
AsyncSpaceTrackClient
- Documentation included in source distribution.
- Some unit tests added for
AsyncSpaceTrackClient
.
\r\n
to\n
newline conversion for async chunk iterator.
AsyncSpaceTrackClient
can no longer be imported from the top levelspacetrack
module, since this would cause an error if optional dependencyaiohttp
was not installed. It must be imported fromspacetrack.aio
.
0.10.0 - 2016-02-04
- Compatibility with
file
anddownload
request classes forfileshare
request controller.upload
request class removed, unable to test. - Rate limit violation HTTP status code 500 handled during predicate information request.
iter_lines=True
now raisesValueError
if receiving binary data (currently only possible withdownload
request class).- Removed internal method
_get_predicate_fields
, set comprehension used inline instead. Predicate
class now has adefault
attribute.
0.9.0 - 2016-01-28
First release.