Example: follow an endpoint's workers live with watch_workers
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 90/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- developer-experience, documentation
Research direction
Read apidly/client.py for watch_workers, then compare examples/05_async_and_errors.py and tests/test_endpoint_watch.py. Create examples/07_watch_endpoint_workers.py to accept an endpoint ID, print each change, and exit cleanly on Ctrl-C; add it to examples/README.md. Done when python -m py_compile and ruff check pass.
Written by the indexing model from the issue text.
Description
Context
client.endpoints.watch_workers(id) is a generator over Server-Sent Events: a snapshot first, then one item per worker change, reconnecting by itself. It is covered by tests/test_endpoint_watch.py but there is no example.
Acceptance criteria
examples/07_watch_endpoint_workers.py: takes an endpoint id as an argument, prints each change, exits cleanly on Ctrl-C. Read-only; standard library plusapidlyonly.- A row in
examples/README.md;python -m py_compilepasses and the file is clean underruff check.
Pointers
apidly/client.py(watch_workers),tests/test_endpoint_watch.py,examples/05_async_and_errors.py
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 92/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