Example: timeouts, retries and with_options
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 92/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- developer-experience, documentation
Research direction
Read apidly/client.py, apidly/errors.py, and the README sections “Safe retries,” “Errors,” and “Options” to confirm the client options and exception usage. Add the runnable read-only example at examples/08_timeouts_and_retries.py and a row in examples/README.md; it is done when python -m py_compile and ruff check pass.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apidly-ltd/apidly-python
-
good first issue help wanted tests
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
All issues in apidly-ltd/apidly-python
Similar issues
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPossibly taken @jejjohnson claimed this today. Opentype:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jejjohnson/integrix#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
finos/ai-governance-framework#459 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1307 ·
Maintainers usually reply within 2 days
-
type/bug
Difficulty 1/5 Under an hour Newbie friendliness 86/100
h2oai/h2o-llmstudio#1163 ·
Maintainers usually reply within 1 day