All Versions
52
Latest Version
Avg Release Cycle
53 days
Latest Release
-
Changelog History
Page 2
Changelog History
Page 2
-
v0.8.0 Changes
March 13, 2019โ Added
- A
retry
decorator to enable reattempts of failed requests. (#132) - A
ratelimit
decorator to constrain consumers to making some maximum number
of calls within a given time period. (#132) - โฑ
Timeout
argument annotation to be able to pass the timeout as a consumer
method argument or to inject it as a transaction hook using aConsumer
instance's_inject
method. (#133 by @daa)
๐ Changed
Consumer
subclasses now inherit class decorators from their
Consumer
parents, so those decorators are also applied to the subclasses'
methods that are decorated with@get
,@post
,@patch
, etc.
(#138 by @daa)
๐ Fixed
- A
-
v0.8.0_ Changes
February 16, 2019โ Added
- A
retry
decorator to enable reattempts of failed requests. (#132
_) - A
ratelimit
decorator to constrain consumers to making some maximum number of calls within a given time period. (#132
_) - โฑ
Timeout
argument annotation to be able to pass the timeout as a consumer method argument or to inject it as a transaction hook using aConsumer
instance's_inject
method. (#133
_ by@daa
_)
๐ Changed
Consumer
subclasses now inherit class decorators from theirConsumer
parents, so those decorators are also applied to the subclasses' methods that are decorated with@get
,@post
,@patch
, etc. (#138
_ by@daa
_)
๐ Fixed
- Memory leaks in
RequestsClient
andAiohttpClient
caused by use ofatexit.register
, which was holding references to session objects and preventing the garbage collector from freeing memory reserved for those objects. (#134
_ by@SakornW
_)
- A
-
v0.8.0._ Changes
February 16, 2019โ Added
- A
retry
decorator to enable reattempts of failed requests. (#132
_) - A
ratelimit
decorator to constrain consumers to making some maximum number of calls within a given time period. (#132
_) - โฑ
Timeout
argument annotation to be able to pass the timeout as a consumer method argument or to inject it as a transaction hook using aConsumer
instance's_inject
method. (#133
_ by@daa
_)
๐ Changed
Consumer
subclasses now inherit class decorators from theirConsumer
parents, so those decorators are also applied to the subclasses' methods that are decorated with@get
,@post
,@patch
, etc. (#138
_ by@daa
_)
๐ Fixed
- Memory leaks in
RequestsClient
andAiohttpClient
caused by use ofatexit.register
, which was holding references to session objects and preventing the garbage collector from freeing memory reserved for those objects. (#134
_ by@SakornW
_)
- A
-
v0.7.0 Changes
December 07, 2018โ Added
Consumer.exceptions
property for handling common client exceptions in a client-agnostic way. (#117)- Optional argument
requires_consumer
forresponse_handler
anderror_handler
; when set toTrue
, the registered callback should accept a reference to aConsumer
instance as its leading argument. (#118)
๐ Changed
- For a
Query
-annotated argument, aNone
value indicates that the query parameter should be excluded from the request. Previous behavior was to encode the parameter as...?name=None
. To retain this behavior, specify the newencode_none
parameter (i.e.,Query(..., encode_none="None")
). (#126 by @nphilipp)
๐ Fixed
- ๐ Support for changes to
Schema().load
andSchema().dump
inmarshmallow
v3. (#109)
-
v0.7.0_ Changes
December 06, 2018โ Added
Consumer.exceptions
property for handling common client exceptions in a client-agnostic way. (#117 <https://github.com/prkumar/uplink/pull/117>
_)- Optional argument
requires_consumer
forresponse_handler
anderror_handler
; when set toTrue
, the registered callback should accept a reference to aConsumer
instance as its leading argument. (#118 <https://github.com/prkumar/uplink/pull/118>
_)
๐ Changed
- For a
Query
-annotated argument, aNone
value indicates that the query parameter should be excluded from the request. Previous behavior was to encode the parameter as...?name=None
. To retain this behavior, specify the newencode_none
parameter (i.e.,Query(..., encode_none="None")
). (#126 <https://github.com/prkumar/uplink/pull/126>
_ by@nphilipp <https://github.com/nphilipp>
_)
๐ Fixed
- ๐ Support for changes to
Schema().load
andSchema().dump
inmarshmallow
v3. (#109 <https://github.com/prkumar/uplink/pull/109>
_)
-
v0.7.0._ Changes
December 06, 2018โ Added
Consumer.exceptions
property for handling common client exceptions in a client-agnostic way. (#117 <https://github.com/prkumar/uplink/pull/117>
_)- Optional argument
requires_consumer
forresponse_handler
anderror_handler
; when set toTrue
, the registered callback should accept a reference to aConsumer
instance as its leading argument. (#118 <https://github.com/prkumar/uplink/pull/118>
_)
๐ Changed
- For a
Query
-annotated argument, aNone
value indicates that the query parameter should be excluded from the request. Previous behavior was to encode the parameter as...?name=None
. To retain this behavior, specify the newencode_none
parameter (i.e.,Query(..., encode_none="None")
). (#126 <https://github.com/prkumar/uplink/pull/126>
_ by@nphilipp <https://github.com/nphilipp>
_)
๐ Fixed
- ๐ Support for changes to
Schema().load
andSchema().dump
inmarshmallow
v3. (#109 <https://github.com/prkumar/uplink/pull/109>
_)
-
v0.6.1 Changes
September 15, 2018๐ Changed
- When the
type
parameter of a function argument annotation, such as
Query
orBody
, is omitted, the type of the annotated argument's
value is no longer used to determine how to convert the value before it's
passed to the backing client; the argument's value is converted only when
itstype
is explicitly set. (#108)
- When the
-
v0.6.1._ Changes
๐ Changed
- When the
type
parameter of a function argument annotation, such asQuery
orBody
, is omitted, the type of the annotated argument's value is no longer used to determine how to convert the value before it's passed to the backing client; the argument's value is converted only when itstype
is explicitly set.
- When the
-
v0.6.0 Changes
September 11, 2018โ Added
- The
session
property to theConsumer
base class, exposing the
๐ง consumer instance's configuration and allowing for the persistence of
certain properties across requests sent from that instance. (#95) - The
params
decorator, which when applied to a method of aConsumer
subclass, can add static query parameters to each API call. (#94) - The
converters.Factory
base class for defining integrations with
other serialization formats and libraries. - The
uplink.install
decorator for registering extensions, such as a
customconverters.Factory
implementation, to be applied broadly.
๐ Fixed
- Issue with detecting
typing.List
andtyping.Dict
for converting
collections on Python 3.7. (#105) - โ
RuntimeWarning
that "ClientSession.close
was never awaited" when
usingaiohttp >= 3.0
. (#100) (by @gkze)
๐ Changed
- When using the
marshmallow
integration, Uplink no longer suppresses
Schema
validation errors on deserialization; users can now handle these
exceptions directly. (#105)
- The
-
v0.6.1_ Changes
๐ Changed
- When the
type
parameter of a function argument annotation, such asQuery
orBody
, is omitted, the type of the annotated argument's value is no longer used to determine how to convert the value before it's passed to the backing client; the argument's value is converted only when itstype
is explicitly set.
- When the