You can install the Hulse Python Client with pip:
pip install hulse
You will need your API key to use the Hulse Python Client (available in your Hulse dashboard). Note that the Python Client also comes with a CLI allowing you to host directly from your terminal as an alternative to the desktop app.
Let's look at 2 interesting functions of the Hulse Python client:
querymethod: given a task, some data, and your API key, seamlessly process your data using your Hulse cluster.
hostCLI command: given your API key, start a Hulse host directly from the command line (by-passing the download of the macOS app).
Here is an example usage of the query method. Let's say we wish to analyse data with a
text-classificationNLP model, we can do so as follows:
api_key = "my-api-key" # find it on your dashboard
data = "Just some interesting, although boring, text."
client = hulse.Hulse()
result = client.query(task="text-classification", data=data, api_key=api_key)
This will send your query to the Hulse servers, which will be dispatched to an active member of your clusters, whom will process the query, using the provided data and task. The result will be forwarded back to you.
hulse-py also includes a CLI to run a host from your terminal. This can be simpler than using the macOS app, and doesn't change anything for other cluster members using your computing power.
hulse host --key="my-api-key"
The host starts in the background of your shell, and runs until interruption.