Skip to content

Add the bdsp.io API client and the bdsp command (bdsp.web) - #2

Open
mb-westover wants to merge 1 commit into
mainfrom
add-bdsp-io-web-client
Open

mb-westover wants to merge 1 commit into
mainfrom
add-bdsp-io-web-client

Conversation

@mb-westover

Copy link
Copy Markdown

This adds the bdsp.io website API client and the bdsp command-line tool to this package, so that pip install bdsp gives both the Zarr reader and the tool. Decided by Brandon (2026-12-03): the PyPI name bdsp is already this package, and the two clashed on the module name.

  • src/bdsp/web/ (client.py, cli.py) is moved from bdsp-core/bdsp.io_webapp_prod clients/python (merged there as PR #79, reviewed in 2 Codex rounds). It's bdsp.web here, because bdsp.api is already the Zarr reader's API. Standard library only; no new dependencies.
  • The command: bdsp = "bdsp.web.cli:main", giving bdsp login | me | ls | files | where | get. It needs a personal token from bdsp.io Settings → API, which is live since 2026-12-03.
  • tests/test_web_client.py: the client's tests against a local fake of the v2 API.
  • Docs: docs/bdsp-io-client.md, plus a README section.
  • Version 0.6.0.

Tests in Python 3.12 (pip install -e ".[test]"; pytest): 73 passed, 1 skipped. Two tests/test_dataset_validation.py CLI tests fail, and they fail the same way on main without this change (checked).

To release: merge, then build and upload 0.6.0 to PyPI as usual for this package.

🤖 Generated with Claude Code

Moved from bdsp-core/bdsp.io_webapp_prod clients/python (PR #79), so that pip install bdsp gives both the Zarr
reader and the bdsp.io command-line tool (Brandon, 2026-12-03). Standard library only; module bdsp.web, command
bdsp. Version 0.6.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant