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.

Python
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.

  1. Use the name and email address associated with your licence request. If you opened this page without a personalised link, replace YOUR NAME and YOUR EMAIL yourself.
  2. Replace the licence placeholder with the licence sent to you after approval. A submitted request alone does not grant access.
  1. Close StarDrop before editing the authentication script.
  2. Press Windows + R to open the Run dialog. Paste %APPDATA% and press Enter. This Windows shortcut opens your user account’s application settings folder.
  3. Open StarDrop, then py3. If either folder is missing, create it using New → Folder.
  4. Save the code there as stardrop_model_server_auth.py using a plain-text editor. Make sure the filename ends in .py, not .py.txt. If the file exists, update its dictionary as described above.
  5. 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.

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)