semvec/pypi-packages huggingface dataset:
hashall 1.0.3
Sophisticate Hashed Data Structures
License: MIT
Requires Python: >=3.6
Keywords: hash

# hashall


[![PyPI version](https://badge.fury.io/py/hashall.svg)](https://badge.fury.io/py/hashall)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)


This library was created to use indexed data structures such as list, tuple, str, bytes, and bytearray with keys like those used in dict (hash table)


## Installation


You can install `hashall` via pip:


```bash
pip install hashall
```


## Usage 


#### hlist 


```python
from hashall import hlist


x = hlist([1, 2, 3, 4, 5, 6])
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-3])
print(x["-3"])
print(x["three"])
print(x["+three"])
print(x["-three"])
```


### Output


```bash
4
4
4
4
4
4
4
4
4
```


#### htuple


```python
from hashall import htuple


x = htuple([1, 2, 3, 4, 5, 6])
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-3])
print(x["-3"])
print(x["three"])
print(x["+three"])
print(x["-three"])
```


### Output


```bash
4
4
4
4
4
4
4
4
4
```


#### hstr


```python
from hashall import hstr


x = hstr("hashall")
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-4])
print(x["-4"])
print(x["three"])
print(x["+three"])
print(x["-four"])
```


### Output


```bash
h
h
h
h
h
h
h
h
h
```


#### hbytes


```python
from hashall import hbytes


x = hbytes(b"hashall")
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-4])
print(x["-4"])
print(x["three"])
print(x["+three"])
print(x["-four"])
```


### Output


```bash
104
104
104
104
104
104
104
104
104
```

#### hbytearray


```python
from hashall import hbytearray


x = hbytearray(b"hashall")
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-4])
print(x["-4"])
print(x["three"])
print(x["+three"])
print(x["-four"])
```


### Output


```bash
104
104
104
104
104
104
104
104
104
```


### Note


You can use all the methods you've been using with these data structures 


## License


This project is licensed under the MIT LICENSE - see the [LICENSE](https://opensource.org/licenses/MIT) for more details.
HABSlib 0.1.64
A library for interacting with the HABS CognitiveOS API.
License: MIT
Requires Python: >=3.6

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/Olocufier/HABSlib/HEAD)
# HABSlib

A Python library for interacting with the HABS BrainOS API, to manage EEG recordings, handling complexities like encryption, authentication, and more, so you can focus on building your application.

Please, consider reading (and providing feedback about) our online [documentation](https://olocufier.github.io/HABSlib/HABSlib/service.html).


## 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(base_url="http://habs", user_id="your_id_from_habs")

###############
# 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'), 
    board="SYNTHETIC",
    stream_duration=20, 
    buffer_duration=5
)
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.