Skip to content

Releases: matin/garth

Client.put() and Client.delete()

02 Oct 01:01
5ee41c5
Compare
Choose a tag to compare

Add Client.put() and Client.delete()

Issue #11
PR #13

Contributor @OscarSalgado

Support paths that don't start with /

01 Oct 19:00
ce5874b
Compare
Choose a tag to compare

Support Pydantic 1

30 Sep 23:03
2d1b211
Compare
Choose a tag to compare

The requirement of Pydantic >=2 was creating a dependency conflict as reported in cyberjunky/python-garminconnect#162. We now support Pydantic >=1.10.13 (as tested).

Issues: #14 and cyberjunky/python-garminconnect#162
PR: #15

Custom upload URL

30 Sep 03:22
Compare
Choose a tag to compare

There are instances where the upload URL needs to be set. This release now allows for path to be passed as an argument but retains the same default path.

Upload

29 Sep 13:29
c77cd9b
Compare
Choose a tag to compare

This release adds garth.client.upload()

with open("12129115726_ACTIVITY.fit", "rb") as f:
    uploaded = garth.client.upload(f)

Issue #8
PR #9

Add timeout to GarminOAuth1Session

28 Sep 19:17
Compare
Choose a tag to compare

Inline with 0.4.30, this release uses the same timeout set in garth.configure() in GarminOAuth1Session.

Make sure OAuth1Session is using retry logic

28 Sep 18:59
Compare
Choose a tag to compare

garth.http.Client.sess uses requests.Session and has proxies, verify and adapters set. For part of the login, garth.sso uses requests_oauthlib.OAuth1Session. The proxies and verify were being set but not the adapters, which include retry (including backoff) logic.

Specifically for OAuth1Session (as subclassed by GarminOAuth1Session), this release makes setting proxies and verify more DRY and uses the same https:// adapter as the main Garth session.

Given the use of garth.sso by other projects, I want to make sure it's bulletproof and will continue to find ways to improve it.

Support 3.8

27 Sep 13:59
Compare
Choose a tag to compare

Add support for Python 3.8

PR: #7
by @yihong0618

Support serializing and deserializing tokens as strings

27 Sep 13:01
Compare
Choose a tag to compare

Add support for serializing and deserializing the OAuth tokens as strings through Client.dumps() and Client.loads()

Issue: #4
PR: #5
by @yihong0618