Skip to main content

The Python client for the Hulse platform

Project description

hulse-py

Welcome to Hulse's Python Client! Hulse is currently in beta.

With your team's untapped computing power, Hulse makes self-hosting state-of-the-art open-source AI models easier. Start reading below to learn how to use the Hulse API, and set up the Hulse desktop app.

If you have questions or want to talk about anything related to Hulse, you are welcome to join the community on Discord!

Installation

hulse-py requires an active Hulse API key and a running Hulse cluster to run queries on AI models. Checkout the Hulse Dashboard to set these up. hulse-py supports Python 3.7+.

To install hulse-py:

pip install hulse

or from source, using this repository:

python setup.py install

Getting Started

To get started, make sure you've retrieved your API key from the dashboard. Here is a simple example of how to run queries using Hulse, and the Hugging Face Transformers' pipeline:

import hulse

API_KEY = "<your-api-key>"
task = "text-classification"
# tweet https://twitter.com/GretaThunberg/status/1460159146720997377
data = "A reminder: the people in power don’t need conferences, treaties or agreements to start taking real climate action. They can start today. When enough people come together then change will come and we can achieve almost anything. So instead of looking for hope - start creating it."
client = hulse.Hulse(api_key=API_KEY)
client.query(task=task, data=data)

Here, we run a query using a text-classification model, which returns an estimation of the sentiment of the provided text. The provided data comes from this tweet from Greta Thunberg.

CLI Host

An alternative to using the macOS app is for you to run a Hulse host directly from your command line. This can be done using the Hulse CLI, and your API key:

hulse login
hulse host

To learn more, check out:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hulse-0.0.5.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hulse-0.0.5-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file hulse-0.0.5.tar.gz.

File metadata

  • Download URL: hulse-0.0.5.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.6

File hashes

Hashes for hulse-0.0.5.tar.gz
Algorithm Hash digest
SHA256 834beead24e20009767bdd4461dbdb3d0ba3df851592950278b3f08def289a5d
MD5 0f748c0005783304c693db59082a620a
BLAKE2b-256 a716ca7fa6c2bcbd70af6ba3ea95ba2757bc671ffd651b9cdddc9cd16dfe2d7a

See more details on using hashes here.

File details

Details for the file hulse-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: hulse-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.6

File hashes

Hashes for hulse-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6270f4a3b7155c08836a4d4e3fd405915751647c09c9128fedf4a9df152dd621
MD5 454595a9a805e8eaaa9e0ce5fb957d71
BLAKE2b-256 931fa4edd4ac1eade97e4e38291fb9ada80a0c519890f3a94222c79e24f8dc57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page