zooniverse / panoptes-cli

A command-line interface for Panoptes
Apache License 2.0
18 stars 5 forks source link

Add subject-set download-classifications data export cmd #217

Closed camallen closed 2 years ago

camallen commented 2 years ago

Add a subject-set resource cmd to download classification exports panoptes subject-set download-classifications --help

This new cmd wraps behaviour in the add-subject-set-classification-exports branch at https://github.com/zooniverse/panoptes-python-client/pull/268

I developed and tested this using a modified Dockerfile.dev that included the code in the above PR via

# Dockerfile updates
RUN pip install git+git://github.com/zooniverse/panoptes-python-client.git@add-subject-set-classification-exports
...
CMD [ "panoptes" ]

i build and ran a shell in that custom client docker image

docker-compose build dev
docker-compose run --rm dev sh # note it's an alpine image

# then i tested these changes using the following cmd
PANOPTES_DEBUG=true panoptes --endpoint https://panoptes-staging.zooniverse.org subject-set download-classifications --generate 4852 -

# profit ....