Closed tjkessler closed 7 months ago
Updates Plemmy to play nice with Lemmy 0.19.X instances.
0.19.X
LemmyHttp
jwt
__init__
LemmyHttp.login
requests.Session
plemmy.utils.create_session
LemmyHttp.__init__
plemmy.utils.get_handler
plemmy.utils.post_handler
plemmy.utils.put_handler
LemmyHttp._session
utils
Version bump: 0.3.11 -> 0.4.0
0.3.11
0.4.0
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
objectLemmyHttp.__init__
andLemmyHttp.login
plemmy.utils.get_handler
,plemmy.utils.post_handler
, andplemmy.utils.put_handler
now accept arequests.Session
object as their first argumentsLemmyHttp
methods to passrequests.Session
object (LemmyHttp._session
attribute) to updatedutils
functionsVersion bump:
0.3.11
->0.4.0