Metadata-Version: 2.1
Name: HABSlib
Version: 0.1.10
Summary: A library for interacting with the HABS BrainOS API.
Home-page: https://github.com/Olocufier/HABS.git
Author: Domenico Guarino
Author-email: domenico@habs.ai
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENCE
Requires-Dist: asyncio==3.4.3
Requires-Dist: brainflow==5.12.1
Requires-Dist: numpy==1.26.4
Requires-Dist: requests==2.31.0
Requires-Dist: scipy==1.13.0
Requires-Dist: urllib3==2.2.1
Requires-Dist: jsonschema
Requires-Dist: cryptography
Requires-Dist: pytest
Requires-Dist: pytest-html
Requires-Dist: pytest-order
Requires-Dist: pytest-dependency

# 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.
