A server for copick projects.
pip install .
python -m copick_server.server serve --config path/to/copick_config.json --cors "*" --port 8000
python -m copick_server.server serve --dataset-ids 10440 --cors "*" --port 8017
You can use multiple dataset IDs by repeating the option:
python -m copick_server.server serve --dataset-ids 10440 --dataset-ids 10441 --cors "*" --port 8017
With config file:
uv run copick_server/server.py serve --config ~/Data/copick/full_ml_challenge_czcdp.json --cors "*" --port 8017
With dataset IDs:
uv run copick_server/server.py serve --dataset-ids 10440 --cors "*" --port 8017
uv run copick_server/client.py
pip install ".[test]"
pytest
For coverage report:
pytest --cov=copick_server
python -m copick_server.server serve --help
Option | Description | Default |
---|---|---|
-c, --config | Path to the configuration file | None |
-ds, --dataset-ids | Dataset IDs to include in the project | None |
--overlay-root | Root URL for the overlay storage | /tmp/overlay_root |
--cors | Origin to allow CORS. Use wildcard '*' to allow all | None |
--host | Bind socket to this host | 127.0.0.1 |
--port | Bind socket to this port | 8000 |
--reload | Enable auto-reload | False |
The idea is influenced by https://github.com/manzt/simple-zarr-server, but aimed at supporting https://github.com/kephale/copick.