See Tutorial

Download Grasshopper file

generative_function_torus.py
from generative.plugins.server.grasshopper.function import GrasshopperFile

class GrasshopperTorus(GrasshopperFile):
    file_path = "grasshopper-torus.gh"