Add async support

オープン
#169 コメント 8 件 リアクション 2 件 担当者 4 名 GitHub で見る

@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 AsyncScrapinghubClient that only provides support for async methods?
How to implement async methods
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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

scrapinghub/python-scrapinghub のほかの issue

scrapinghub/python-scrapinghub の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。