semvec/pypi-packages huggingface dataset:
heroes-ai-handler 0.2.12
A package for handling GPT, embeddings, and data for an AI Assistant.
License: MIT
Requires Python: >=3.8

python version >=  3.10
# Heroes AI Handler

## Description

This package will handle all elements for an AI assistant, from ingesting data to using the GPT models.

## Development
```bash
python3.10 -m venv .venv
pip install -r requirements.txt
```


## Usage of the package
For using this package, a few environment variables are necessary to use certain functionalities of the package. For example, place them all in a `.env` file, and load them in using package `python-dotenv`:

```python
from dotenv import load_dotenv
load_dotenv()
```

Full list of necessary variables:

Varibale name | description
|:--|:--|
AZURE_OPENAI_ENDPOINT | Endpoint to the Azure Open AI resource.
AZURE_OPENAI_API_KEY | API-key to access the Azure Open AI resource.
AZURE_OPENAI_CHAT_DEPLOYMENT_NAME | Name of the deployment of the chat completion model.
AZURE_OPENAI_API_VERSION | API-versie azure Open AI resource.
AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT_NAME | Name of the deployment of the embedding model.
WEVIATE_CLUSTER_ENDPOINT | Endpoint to the Weaviate cluster.
WEVIATE_CLUSTER_API_KEY | API-key to access the Weaviate cluster.
STORAGE_ACCOUNT_NAME | Name of the Azure Storage Account.
STORAGE_ACCOUNT_KEY | Key to the Azure Storage Account
STORAGE_ACCOUNT_CONTAINER_NAME | Container name within the Azure Storage Account
SQL_SERVER_NAME | SQL Server name.
SQL_DATABASE_NAME | Database name within SQL Server.
SQL_USERNAME | Username for accessing Database.
SQL_PASSWORD | Password for accessing Database.
SQL_DRIVER | Formulate SQL driver.


## Manual actions

Create the following resources:

**Azure**
- Azure OpenAI
    - Deploy chat completion model: gpt-3.5-turbo / gpt4
    - Deploy text embedding model: text-embedding-ada-002
- Storage account
    - Create container
- SQL server
    - Make sure you can access the SQL Server from the network configurations.
- SQL database
    - To create tables in database, run:
    `setup/1__create_database_tables.ipynb`

**Weaviate**
- Weaviate account with a cluster
    - To create collection in Weaviate cluster, run: 
    `setup/2__create_weaviate_collection.ipynb`



## Manual deployment of package

Only run this when automatical deployment through azure devops doesn't suit the purpose.

```bash
python3.10 -m venv .venv_publish
source .venv_publish/bin/activate
pip install wheel twine
rm -rf build dist *.egg-info
python setup.py sdist bdist_wheel
twine upload -u $(twineUsername) -p $(twinePassword) dist/*
rm -rf build dist *.egg-info
```
pyecsca-codegen 0.3.2
Python Elliptic Curve cryptography Side Channel Analysis toolkit (codegen package).
License: MIT
Requires Python: >=3.9

# pyecsca-codegen

[![Test](https://github.com/J08nY/pyecsca-codegen/actions/workflows/test.yml/badge.svg)](https://github.com/J08nY/pyecsca-codegen/actions/workflows/test.yml) ![License: MIT](https://img.shields.io/github/license/J08nY/pyecsca.svg) [![codecov](https://codecov.io/gh/J08nY/pyecsca-codegen/branch/master/graph/badge.svg)](https://codecov.io/gh/J08nY/pyecsca-codegen)

**Py**thon **E**lliptic **C**urve cryptography **S**ide-**C**hannel **A**nalysis toolkit.

Codegen package. See the [main repo](https://github.com/J08nY/pyecsca) for more information.

See [INSTALL](docs/install.rst) for installation instructions.

## License

    MIT License

    Copyright (c) 2018-2024 Jan Jancar
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.
    

*Development is supported by the Masaryk University grant [MUNI/C/1701/2018](https://www.muni.cz/en/research/projects/46834),
this support is very appreciated.*
wiseman-library 1.2.1
wiseman bundles the voice assistant infrastructure into a python library
License: MIT
Requires Python: <4.0,>=3.12
Keywords: voice assistant, wiseman, library


# wiseman library

 
Wiseman is a Python library for adding voice assistant features to your applications and building personal assistant applications.


## Features

- executes the function you give when called
- can be called by more than one name
- voice recording
- audio playback
- voice to text
- text-to-speech (Gtts)
- text-to-speech (Elevenlabs)


## download

Run this project to use it

```bash
 pip install wiseman_library
```

  
## Usage/Examples





|function|module|function
|---|---|---|
|lissen()|wiseman_library| listens to the microphone at the specified interval and calls the given function when its name is called|   
|stop_listen()|wiseman_library|stops listening to microphone| 
|record()|wiseman_library.Recorder| records audio for the given recording time and saves it to the given location|   
|recognize()|wiseman_library.Recognizer|translates the given audio to text with the default method|
|recognize_from_google()|wiseman_library.Recognizer| converts the given voice to text with the speech_recognition library|
|play_sound()|wiseman_library.speaker|plays the given sound file|
|speak()|wiseman_library.speaker|reads text with default text reader|
|speak_with_eleven_labs()|wiseman_library.speaker| Speaks text with eleven_labs api|
|speak_with_gtts()|wiseman_library.speaker| Speaks text with Gtts|








Example of **lissen() function**
```python
import wiseman_library
def fun(name,text):
    print(name+" :: "+text)
wiseman_library.lissen(function=fun)
```

  
## Authors and Acknowledgments

- [@adem-ocel](https://github.com/adem-ocel) for design and development.

  [![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)