Set up StarDrop authentication
Prepare your name, email address and Cytocast licence for use in StarDrop.
Authentication snippet
Check your name and email, then replace YOUR CYTOCAST LICENCE with the licence supplied by Cytocast after approval.
import json
NAME = "YOUR NAME"
EMAIL = "YOUR EMAIL"
CYTOCAST_LICENCE = "YOUR CYTOCAST LICENCE"
def collect_auth_details(appui):
data = {
"name": NAME,
"email": EMAIL,
"cytocast_licence": CYTOCAST_LICENCE,
}
appui.updateSettingsValue("modelserver/auth", json.dumps(data))Using the snippet
If you already have stardrop_model_server_auth.py on your system, add the "cytocast_licence": "YOUR CYTOCAST LICENCE" key-value pair to its existing data dictionary. Replace the placeholder with your issued licence and keep the other entries.
- Use the name and email address associated with your licence request. If you opened this page without a personalised link, replace
YOUR NAMEandYOUR EMAILyourself. - Replace the licence placeholder with the licence sent to you after approval. A submitted request alone does not grant access.
- Close StarDrop before editing the authentication script.
- Press Windows + R to open the Run dialog. Paste
%APPDATA%and press Enter. This Windows shortcut opens your user account’s application settings folder. - Open StarDrop, then py3. If either folder is missing, create it using New → Folder.
- Save the code there as
stardrop_model_server_auth.pyusing a plain-text editor. Make sure the filename ends in.py, not.py.txt. If the file exists, update its dictionary as described above. - Open StarDrop again to load the script.
The file will normally be at C:\Users\<your Windows username>\AppData\Roaming\StarDrop\py3\stardrop_model_server_auth.py. The shortcut finds your user folder automatically.
- Quit StarDrop before editing the authentication script.
- In Finder, choose Go → Home to open your user folder. Open StarDrop, then py3. If either folder is missing, create it using File → New Folder.
- Open a new document in TextEdit and choose Format → Make Plain Text before pasting the code. You can also use another plain-text code editor.
- Save the file in that py3 folder as
stardrop_model_server_auth.py. Keep the.pyextension if prompted; do not save it as.txtor.rtf. If the file exists, update its dictionary as described above. - Open StarDrop again to load the script.
The file should be at /Users/<your Mac username>/StarDrop/py3/stardrop_model_server_auth.py.
The function collects the three values and saves them as JSON in StarDrop’s modelserver/auth setting when called with StarDrop’sappui object. Copying the code does not run it or change your StarDrop settings.
For the model-server connection steps, see StarDrop setup.
Example StarDrop project
Download the Neurokinin2 project and open it in Optibrium’s StarDrop to explore the example.
Download example project (.sdproj)