Package: nlidatamanagement
Uploading tagged data to Girder and Zotero using a GUIGetting StartedPrerequisites1. Install python3Any python above 3.6 should be fine. Python 3.8 is recommended. You can install python3 from one of the following:Download from the python official websitehere.Install python3 using brew if you are using macOSbrew install python@3.8Install python3 usingpyenv. Seehere.NOTEIf you usedpyenvto install Python on a Mac,tkintermight not be integrated by default. To installtkinterlib, you have to first uninstall your current python (if python is already installed), then reinstall it with:PYTHON_CONFIGURE_OPTS="--with-tcltk-includes='-I/usr/local/opt/tcl-tk/include' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'" 
pyenv install {your python version}2. Create Girder API keyA Girder API Key is needed in order to Login the Girder System.LoginNutritionalLungImmunity. Create an account if you don't have one.Click your username on the top right -> MyAccount -> API Keys Tab -> Create new key.Keep this key private!3. Create a Zotero API Key (optional)If you want to attach Zotero Item with the tag list from Girder, a Zotero API Key is needed.LoginZotero. Go toaccount setting page.ClickCreate new private key.UnderPersonal Library, check all options. UnderDefault Group Permissions, selectRead/Write. Then clickSave key.Mark down the pop-up API key.Save it in a safe place.InstallationInstall the virtual environment packagepython3 -m pip install virtualenv(on Windows add.exetopython3)If you have trouble with permission issues installing any packages system-wide, you may have more luck by installing them as user-local packages:python3 -m pip install --user virtualenvCreate and move to a directory where you want to keep the virtual environmentmkdir my-nlidatamanagement; cd my-nlidatamanagementCreate a virtual environmentvirtualenv -p python3 venv(on Windows add.exetovirtualenv)Enter the virtual environment:. venv/bin/activateon Windows:.\venv\bin\activate.batInstall the uploader into the virtual environmentpython3 -m pip install nlidatamanagementLaunching the uploadernli_data_managementNote: To re-launch the program, perform steps 4 and 6.Note 2: The virtual environment is optional and serves to simplify potential package dependency problems. If you wish to install the uploader outside the virtual environment, only the last two steps are required. Re-launch is done via step 6.To update the tool to a new version, enter the virtual environment and runpython3 -m pip install --upgrade nlidatamanagementInitialize ConnectionConnect to GirderClickUpload to Girderand a new setting window will pop up.UnderAdd new Girder instance:Give the new Girder instance a name.ForHost, typedata.nutritionallungimmunity.orgCopy and paste your Girder API Key in theAPI KeyClick theaddbuttonSelect the new added Girder instance and clickConnectConnect to ZoteroClickUpload to ZoteroAdd a new Girder Instance, if you haven't done it yet.UnderAdd new zotero Instance:Give the new Zotero instance a name.ForLibrary ID, type2345225ForLibrary Type, typegroupCopy and paste your Zotero API Key in theAPI KeyClick theaddbuttonSelect both Girder instance and Zotero instance. ClickConnect