Title: async support & httpx-based python-gitlab · Issue #1025 · python-gitlab/python-gitlab · GitHub
Open Graph Title: async support & httpx-based python-gitlab · Issue #1025 · python-gitlab/python-gitlab
X Title: async support & httpx-based python-gitlab · Issue #1025 · python-gitlab/python-gitlab
Description: I've completely reworked python-gitlab to be async-compatible: https://github.com/vishes-shell/python-gitlab : code it fully async compatible via awesome httpx async tests are rewritten with pytest, pytest-asyncio and respx functional te...
Open Graph Description: I've completely reworked python-gitlab to be async-compatible: https://github.com/vishes-shell/python-gitlab : code it fully async compatible via awesome httpx async tests are rewritten with pytest...
X Description: I've completely reworked python-gitlab to be async-compatible: https://github.com/vishes-shell/python-gitlab : code it fully async compatible via awesome httpx async tests are rewritten with py...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/1025
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"async support \u0026 httpx-based python-gitlab","articleBody":"I've completely reworked python-gitlab to be async-compatible: https://github.com/vishes-shell/python-gitlab : \r\n\r\n- code it fully async compatible via awesome [`httpx`](https://github.com/encode/httpx)\r\n- async tests are rewritten with [`pytest`](https://github.com/pytest-dev/pytest), [`pytest-asyncio`](https://github.com/pytest-dev/pytest-asyncio) and [`respx`](https://github.com/lundberg/respx)\r\n- functional tests are also rewritten to be async\r\n\r\nYou can see changes in pull request https://github.com/vishes-shell/python-gitlab/pull/1 , i've tried to stick to project rules, but without `pytest` it would be harder...\r\n\r\nI've seen some work that's done in https://github.com/python-gitlab/python-gitlab/pull/998 , and at the beginning i started on top of it, but found it hard to continue, due to some incomplete changes that are done, and trying to do sync stuff via `run_until_complete` would not work.\r\n\r\nI would like to release it under `python-gitlab-async` module.\r\n\r\nHow i see it:\r\n\r\n- i would hear your thoughts on this\r\n- make some changes that you require (maybe drop `cli` support since `python-gitlab` do it good)\r\n- update documentation\r\n- transfer my fork under your `python-gitlab` namespace as `python-gitlab-async`, become a member of it\r\n- release it in pypi.org\r\n- take care of it\r\n\r\nI think it's not that hard to keep up with changes from `master` branch and try to release as `python-gitlab` with same versions.\r\n\r\nIt was a pleasure to work with this brilliantly written library, and the same time you have a lot of `def`s to become `async def`s.:)","author":{"url":"https://github.com/vishes-shell","@type":"Person","name":"vishes-shell"},"datePublished":"2020-02-22T12:58:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":32},"url":"https://github.com/1025/python-gitlab/issues/1025"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f4bedf38-40f1-ffac-6a54-b67b37711c69 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD76:17C560:7737E3:A19CC9:69735E78 |
| html-safe-nonce | 61921c0874fb40468634c54df90e97f266a72b98cb25e2a1ff032c01dcc40092 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDc2OjE3QzU2MDo3NzM3RTM6QTE5Q0M5OjY5NzM1RTc4IiwidmlzaXRvcl9pZCI6IjMwNTMxMTQ1MjY3NDg4NjAwMjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8885745c1822ee9e771485de61b65b54a425be3a6dfb3a8c23ede97a9e3bfb2b |
| hovercard-subject-tag | issue:569331478 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-gitlab/python-gitlab/1025/issue_layout |
| twitter:image | https://opengraph.githubassets.com/09632100f3714dd795d4c6949f9edd8c691321a9128f3c232816212ddee8e037/python-gitlab/python-gitlab/issues/1025 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/09632100f3714dd795d4c6949f9edd8c691321a9128f3c232816212ddee8e037/python-gitlab/python-gitlab/issues/1025 |
| og:image:alt | I've completely reworked python-gitlab to be async-compatible: https://github.com/vishes-shell/python-gitlab : code it fully async compatible via awesome httpx async tests are rewritten with pytest... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vishes-shell |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4cf879a11b0a28a85543899a36aaee9ec9ca2fb7bedad86c0da5731193c95f01 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-gitlab/python-gitlab git https://github.com/python-gitlab/python-gitlab.git |
| octolytics-dimension-user_id | 28886265 |
| octolytics-dimension-user_login | python-gitlab |
| octolytics-dimension-repository_id | 8077625 |
| octolytics-dimension-repository_nwo | python-gitlab/python-gitlab |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8077625 |
| octolytics-dimension-repository_network_root_nwo | python-gitlab/python-gitlab |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fe8be790582ef7a55477ce1918ac0ed16b106d31 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width