Castor Python

Prerequisites

  • DRE: Workspace access (for installing Jupyter Labs / Python you need admin rights, workspace ownership, in the virtual machine)

  • Open up the port to Castor by a workspace owner, in the workspace where you want to export the data to (target)

  • Castor: get your client id and secret (outside Workspace, see image blow)

    • create a file without extention and rename it: client

    • create a file without extention and rename it: secret

    • Upload these to a folder in the Workspace (e.g. z:\Secretes\Castor)

  • Get the study name

Install CastorAPI

  • Inside VM, open Anaconda Prompt in Admin

  • conda install -c conda-forge castorapi

Link to documentation and example

https://github.com/wouterpotters/castorapi

Screenshot from a VM in a Workspace, the location of the studyname (see Prequisites)