Example: timeouts, retries and with_options

Open Beginner friendly
#4 0 comments 0 reactions 0 assignees View on GitHub

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

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

documentation good first issue help wanted

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, catching ApidlyConnectionError; with_options used for one call with another timeout; a comment explaining when an idempotency_key makes a repeat safe. Read-only calls only.
  • A row in examples/README.md; python -m py_compile and ruff check pass.

Pointers

  • apidly/client.py, apidly/errors.py, README.md sections "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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apidly-ltd/apidly-python

All issues in apidly-ltd/apidly-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.