Add async support

Đang mở
#169 8 bình luận 2 reaction 4 người được giao Xem trên GitHub

@VMRuiz đang làm issue này rồi.

Từ ngày 17/1/2023.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
Python
Star
204
Fork
62
Merge trung bình
6 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của scrapinghub/python-scrapinghub

Tất cả issue của scrapinghub/python-scrapinghub

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.