Example: timeouts, retries and with_options
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 92/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- developer-experience, documentation
Hướng nghiên cứu
Đọc apidly/client.py, apidly/errors.py và các phần “Safe retries”, “Errors” và “Options” trong README để xác nhận các tùy chọn của client và cách sử dụng exception. Thêm ví dụ chỉ đọc có thể chạy được examples/08_timeouts_and_retries.py và một dòng trong examples/README.md; công việc hoàn tất khi python -m py_compile và ruff check chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
Client(max_retries=2, timeout=60.0) and client.with_options(timeout=, max_retries=, idempotency_key=) are described in the README (Options, Safe retries) with no runnable example.
Acceptance criteria
examples/08_timeouts_and_retries.py: a client with a short timeout, catchingApidlyConnectionError;with_optionsused for one call with another timeout; a comment explaining when anidempotency_keymakes a repeat safe. Read-only calls only.- A row in
examples/README.md;python -m py_compileandruff checkpass.
Pointers
apidly/client.py,apidly/errors.py,README.mdsections "Safe retries", "Errors" and "Options"
Not sure where to start, or want to claim it? Comment here first, or ask in Discussions. See CONTRIBUTING.md. Tests run offline and never call the real API.
- Ngôn ngữ chính
- Python
- Star
- 1
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 apidly-ltd/apidly-python
-
good first issue help wanted tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
documentation good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Tất cả issue của apidly-ltd/apidly-python
Issue tương tự
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorCó thể đã có người làm @jejjohnson đã nhận hôm nay. Đang mởtype:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
jejjohnson/integrix#144 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
finos/ai-governance-framework#459 ·
-
slurm: a case outcome nested too deep crashes status/collect instead of reading as no outcomeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
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 78/100
freelawproject/litigant-portal#1307 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
h2oai/h2o-llmstudio#1163 ·
Maintainer thường phản hồi trong vòng 1 ngày