Add async support
@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
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.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của scrapinghub/python-scrapinghub
-
Incorrect information for Samples in Job documentationCó thể đã có người làm @AdrianAtZyte đã nhận 66 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
Zyte Job API: Provision to support Cron Expression or Time IntervalCó thể đã có người làm @AdrianAtZyte đã nhận 67 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Add retry logic to Job Tag Update functionCó thể đã có người làm @AdrianAtZyte đã nhận 66 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
-
KeyError: 'status' when trying to schedule spiderCó thể đã có người làm @AdrianAtZyte đã nhận 64 ngày trước. Đang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
scrapinghub/python-scrapinghub#156 · 6 bình luận ·
-
collections.get_store is not working as documentedCó thể đã có người làm @AdrianAtZyte đã nhận 64 ngày trước. Đang mởbug docs
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
Tất cả issue của scrapinghub/python-scrapinghub
Issue tương tự
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount dueCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 79/100
developmentseed/titiler-covjson#164 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
awslabs/visual-asset-management-system#2164 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
MakazhanAlpamys/Soup#3589 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
channels status reports the wrong Enabled value for Feishu instances and default-enabled WebSocketĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày