Releases: Kyria/EsiPy
v0.3.1
v0.3.0
Version 0.3.0
Changes
- Do not try to cache response if there's no
expires
information (#22) - Fix cache behavior to be the same everywhere. See details below.
- Breaking changes :
- Rename signal instances to be fully capitalized.
after_token_refresh
becomeAFTER_TOKEN_REFRESH
api_call_stats
becomeAPI_CALL_STATS
- Renamed the following
EsiSecurity
methods:get_access_token_request_params
to becomeget_access_token_params
get_refresh_token_request_params
to becomeget_refresh_token_params
- Rename signal instances to be fully capitalized.
New Feature: EsiApp
EsiApp is an object that will be used to play with ESI Meta Swagger spec.
That mean you will be able to easily get meta endpoints, like /verify
, /status
the same way as the current App object, but it allows you to also get all current swagger spec used in ESI, for versionned endpoint and others.
Please look at the doc for how to use it.
Caching behavior change
Until now, cache objects worked differently when timeout was equal to 0
or None
depending on which engine you used for caching.
To prevent error if switching between engine and to have consistent behavior, if timeout now equals 0
or None
, the data will not expire.
v0.2.0
Version 0.2.0
Change :
EsiSecurity
object no longer requireapp
object to be initialized to get SSO Urls (authorize, token).- You can still use it, as before and your app will still work the same as before
- You can manually give a
sso_url
instead, to say whether you want SISI / TQ SSO (default is TQ) instead of the app object. - If both are given, priority is set to the
app
object.
- Use of https://esi.tech.ccp.is/verify/ for verify instead of the sso endpoint (https://login.eveonline.com/oauth/verify)
This introduce a small breaking change if you init EsiSecurity
without keyword, since app
parameter is no longer the first parameter. You need to:
- either use keywords to init
- put
app
parameter in the 4th parameter [not recommended]
v0.1.8
V0.1.7
v0.1.6
v0.1.5
- Catch network issue by catching requests ConnectionError.
When this happens, the request will fail, and instead of raising an exception, it will simply enter the process like another error 500. When in retry process, the request will retry, just like any other request.
The error body will contain a json object,
{
'error': 'the http error message from the exception',
}
Thanks to @Ebag333
v0.1.4
v0.1.3
v0.1.2
- Change logger name to use
__name__
(esipy) - Add
raw_body_only
toEsiClient.__init__()
to have a default value for all requests (unless you specify it in theEsiClient.request()
method). - Add
api_call_stats
event to have a hook that returns elapsed time for requests (to monitor api calls / status). See http://esipy.readthedocs.io/en/latest/advance/signals/#list-of-signals - Add
warnings.warn()
andlogger.warning()
whenwarning
header is found. (#3)