0.4.0 - Lemmy 0.19.X updates
Updates Plemmy to play nice with Lemmy 0.19.X
instances.
LemmyHttp
object now optionally accepts ajwt
token on__init__
ifLemmyHttp.login
method not called afterwardsjwt
token is no longer stored in theLemmyHttp
object, it is passed directly to arequests.Session
objectplemmy.utils.create_session
function accepts headers andjwt
token, returnsrequests.Session
object- used in
LemmyHttp.__init__
andLemmyHttp.login
- used in
plemmy.utils.get_handler
,plemmy.utils.post_handler
, andplemmy.utils.put_handler
now accept arequests.Session
object as their first arguments- Updated all
LemmyHttp
methods to passrequests.Session
object (LemmyHttp._session
attribute) to updatedutils
functions