Add async support
@VMRuiz がすでに取り組んでいます。
2023年1月17日 から。
評価
この issue はまだ評価されていません。
説明
Scrapy now supports calling async methods from many components. It would be great to provide the option to call Scrapinghub API using async methods to avoid either blocking calls or having to work with twisted deferreds and threads.
In order to do that, there are several design decisions that needs to be taken:
Define Async interface
- Do we add an async version for each method already available?
- Do we create an
AsyncScrapinghubClientthat only provides support for async methods?
How to implement async methods
- Python coroutines
- asyncio coroutines
Possible obstacles?
If we want to use python-scrapinghub in standalone mode, will it create their own task loop? or should it expect it to be already created?
If we run it inside Scrapy, could this cause conflict issues?
I don't have much experience designing async libs so It would be great if someone with a better understanding could provide some pointers here.
- 主要言語
- Python
- スター
- 204
- フォーク
- 62
- 平均マージ
- 6分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
scrapinghub/python-scrapinghub のほかの issue
-
Incorrect information for Samples in Job documentation対応中かも @AdrianAtZyte が 66 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
Zyte Job API: Provision to support Cron Expression or Time Interval対応中かも @AdrianAtZyte が 67 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
Add retry logic to Job Tag Update function対応中かも @AdrianAtZyte が 66 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
-
KeyError: 'status' when trying to schedule spider対応中かも @AdrianAtZyte が 64 日前に担当しました。 オープンenhancement
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
scrapinghub/python-scrapinghub#156 · コメント 6 件 ·
-
collections.get_store is not working as documented対応中かも @AdrianAtZyte が 64 日前に担当しました。 オープンbug docs
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
scrapinghub/python-scrapinghub の issue をすべて見る
似ている issue
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount due対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 79/100
developmentseed/titiler-covjson#164 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
awslabs/visual-asset-management-system#2164 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
MakazhanAlpamys/Soup#3589 ·
メンテナーはふだん 1 日以内に返信
-
channels status reports the wrong Enabled value for Feishu instances and default-enabled WebSocketオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信