{"id":27813,"library":"ghhops-server","title":"GhHops Server","description":"A Python server for Grasshopper Hops, enabling remote execution of Grasshopper definitions via HTTP. Version 1.5.5 is the current stable release; updates are tied to the compute.rhino3d ecosystem and are infrequent.","status":"active","version":"1.5.5","language":"python","source_language":"en","source_url":"https://github.com/mcneel/compute.rhino3d/tree/master/src/ghhops-server-py","tags":["grasshopper","hops","rhino","server","compute"],"install":[{"cmd":"pip install ghhops-server","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"Required for HTTP server functionality.","package":"Flask","optional":false},{"reason":"Provides Rhino.Compute client for Hops execution.","package":"compute-rhino3d","optional":true}],"imports":[{"note":"Module name is ghhops_server, not ghhops.","wrong":"import ghhops","symbol":"Hops","correct":"from ghhops_server import Hops"},{"note":"","wrong":"","symbol":"HopsResponse","correct":"from ghhops_server import HopsResponse"}],"quickstart":{"code":"from ghhops_server import Hops\nimport Flask\n\napp = Flask(__name__)\n\n@Hops.route(app)\ndef hello():\n    return \"Hello, Hops!\"\n\nif __name__ == '__main__':\n    app.run()","lang":"python","description":"Create a minimal Hops server with a single endpoint."},"warnings":[{"fix":"Replace @Hops.endpoint with @Hops.route.","message":"In version 1.5.0, the decorator changed from @Hops.endpoint to @Hops.route. Old code using @Hops.endpoint will fail.","severity":"breaking","affected_versions":"<1.5.0"},{"fix":"Start Rhino.Compute (e.g., via compute.rhino3d) before running the Hops server.","message":"The Hops server must be run on the same machine as a Rhino.Compute instance that resolves Grasshopper definitions. Without Rhino.Compute running, endpoints will fail.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'from ghhops_server import Hops' instead of 'from ghhops import Hops'.","message":"The old import path 'ghhops' (without underscore) is deprecated since version 1.4.0 and will be removed in a future release.","severity":"deprecated","affected_versions":">=1.4.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run 'pip install ghhops-server' and ensure you import as 'ghhops_server'.","cause":"The package is not installed or is installed under a different name (e.g., 'ghhops').","error":"ModuleNotFoundError: No module named 'ghhops_server'"},{"fix":"Use @Hops.route instead of @Hops.endpoint.","cause":"The @endpoint decorator was removed in version 1.5.0.","error":"AttributeError: module 'ghhops_server' has no attribute 'endpoint'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}