◐ Shell
clean mode source ↗

Async and sync compatible wrapper by vishes-shell · Pull Request #1036 · python-gitlab/python-gitlab

and others added 30 commits

February 22, 2020 15:35
Make all functions async
Use httpx instead of httpx
Make decorators async to correctly wrap async methods
Change _http_auth on direct httpx.AsyncClient.auth property
Fix some errors that are met on the way to async
This possibly is temporary solution because httpx raises TypeError when
tries to init DataField with bool value
feat: httpx based python-gitlab
on_http_error should work with sync functions that return coroutines and
handle errors when coroutines will be awaited
Also provide async and sync interface to interact with GitlabList
Provide base of gitlab client along with implementations of sync and
async interface
Basic principle is that we won't use constructor to create object,
instead classmethod would be used that return either object or corotine
that returns object
chore: provide docstrings for gitlab client implementations

graingert

@nejch nejch mentioned this pull request

Nov 26, 2021