Skip to main content

A library for interacting with the HABS BrainOS API.

Project description

HABSlib

Habslib is a Python library for interacting with a remote API, handling complexities like encryption, authentication, and more, so you can focus on building your application.

Installation

You can install habslib using pip:

pip install HABSlib

Usage

Here’s a quick example to get you started:

import HABSlib as hb

###############
# Security handshake
hb.handshake()

###############
# Set user/subject (if the user already exists it should not creat one)
user_id = hb.set_user("Domenico", "Guarino", "domenico@habs.ai", 50, 89, "M")

###############
# Get user data by id
user_data = hb.get_user_by_id(user_id)
print(user_data)

# ###############
# Simple sending data
session_id = hb.acquire_send_raw(
    user_id=user_id, 
    date=datetime.today().strftime('%Y-%m-%d'), 
    stream_duration=20, 
    buffer_duration=5, 
    overlay=0)
print("this session:", session_id)

Contributing

We welcome contributions! Please see our CONTRIBUTING.md for more details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

If you have any questions or need support, please open an issue on GitHub or contact dev@habs.ai.

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

habslib-0.1.6.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

HABSlib-0.1.6-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file habslib-0.1.6.tar.gz.

File metadata

  • Download URL: habslib-0.1.6.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.6

File hashes

Hashes for habslib-0.1.6.tar.gz
Algorithm Hash digest
SHA256 5306c8f71f78d8e7f444ab32acbe71375bfb1b3ee7741f53900bd78677672a1d
MD5 df083836326f2166b60d1b9b9b02b94a
BLAKE2b-256 46cbf6f70c707a5f08811b0b026fd82a56b0d6896e4fdf138286272787674cce

See more details on using hashes here.

File details

Details for the file HABSlib-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: HABSlib-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.6

File hashes

Hashes for HABSlib-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e3f3e2f3b870810d8399556868c718c5abca3f1d521042667883e1d0a7c0423a
MD5 596b0030ae6475db5d67ca76f39cf29d
BLAKE2b-256 3c94e425cc186eff007e32623b8d1b840a5b62988c1e4af1e787e26a0257d8e1

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