Python Client API
Developmentpython-client-apiPython Client API is an Agent Skill for development published in the fossasia/visdom repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Add or modify Visdom Python client methods with correct server/frontend parity and typing updates
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/fossasia/visdom/blob/HEAD/.agents/skills/python-client-api/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/python-client-api, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Skill: Python Client API Changes
When to Use
Use this skill when adding or changing methods in py/visdom/__init__.py.
Core Workflow
- Add/update the
Visdommethod inpy/visdom/__init__.py. - Keep
@pytorch_wrapon public plotting APIs. - Build payloads through
self._send(...)with consistent keys (data,win,eid,opts). - Update
py/visdom/__init__.pyifor type stub parity. - If payload shape changes, update server handling (
py/visdom/utils/server_utils.py) and pane rendering assumptions. - Add or update demo usage in
example/and relevant Cypress tests.
Guardrails
- Do not bypass
_send()with ad-hoc transport logic. - Keep backward compatibility for
win,env, andupdatebehavior. - API changes must be reflected in docs and type stubs.
Documentation
- Skill reference
py/visdom/__init__.pypy/visdom/__init__.pyipy/visdom/utils/server_utils.pypy/visdom/server/handlers/web_handlers.pyAGENTS.mdCONTRIBUTING.md
Assets
- See
assets/README.mdand store templates/resources inassets/.
Tests
- Follow the default flow in
references/TESTS.md.