Cheshire-Labs / orca

Lab Automation Scheduling Software
8 stars 0 forks source link

Add driver installer and loader #5

Open miikee opened 2 months ago

miikee commented 2 months ago

Driver handling needs to be improved.

Implementation

  1. A new driver repo needs to be created.
  2. Within that repo a JSON file needs to be created with a list of driver installer objects:
    • name
    • description
    • url -> pointing to driver's repo
  3. Commands:
    • driver install <name> [--branch <branch>] - installs driver
    • driver uninstall <name> - uninstalls driver
      1. Drivers either get installed via setup.py or just copied to an "installed_driver" folder
      2. DriverFactory needs to be modified to find appropriate driver
miikee commented 2 months ago

Scripting is already running a similar functionality finding the appropriate scripts. This functionality can be isolated and used for drivers also. In the future, plugins will operate the same way.