Registry / http-networking / ghhops-server

ghhops-server

JSON →
library1.5.5pypypiunverified

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.

pip install ghhops-server
INSTALL
IMPORT
SIG · GHHOPS-SERVER
G
ghhops-server
http-networkingpythonv1.5.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Hops
from ghhops_server import Hops
from ghhops_server import Hops

Create a minimal Hops server with a single endpoint.

from ghhops_server import Hops import Flask app = Flask(__name__) @Hops.route(app) def hello(): return "Hello, Hops!" if __name__ == '__main__': app.run()
Debug
Known issues
breakingIn version 1.5.0, the decorator changed from @Hops.endpoint to @Hops.route. Old code using @Hops.endpoint will fail.
fix
Replace @Hops.endpoint with @Hops.route.
affects: <1.5.0
gotchaThe 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.
fix
Start Rhino.Compute (e.g., via compute.rhino3d) before running the Hops server.
affects: all
deprecatedThe old import path 'ghhops' (without underscore) is deprecated since version 1.4.0 and will be removed in a future release.
fix
Use 'from ghhops_server import Hops' instead of 'from ghhops import Hops'.
affects: >=1.4.0
Upgrade
Version history
1.5.5latest on PyPI · released Apr 24, 2023
Audit
Dependencies
FlaskrequiredRequired for HTTP server functionality.
compute-rhino3doptionalProvides Rhino.Compute client for Hops execution.
Agent activity
19 hits · last 30 days
node
18
Resources
ghhops-server — pip install ghhops-server · libregistry