semvec/pypi-packages huggingface dataset:
JenAssistant 1.0.0
A package which can be used for virtual assistants
Requires Python: >=3.6
Keywords: python,virtual assistant,assistant,Jen,Jen Assistant,JEN

# JenAssistant

## What is JenAssistant?
Jen is a package which has a list of different types of assistants which can help you in virtual assistant projects.

## Sample Code

This is the code for making a Simple Assistant. Here it checks if the word calendar is there in the command you have provided and accordingly displays the calendar for the given year

```python
from jen.assistant import SimpleAssistant
from jen.functions import display_cli_calendar

assistant=SimpleAssistant("Assistant")

command=input("What do you want the Assistant to Do :")

if "calendar" in command:
    year=int(input("Enter Year:"))
    assistant.display_response("Displaying the calendar for {}".format(year))
    display_cli_calendar(year)
```

This is the code for making a Speech Recognising Assistant. This can recognise your speech and display the output accordingly.

```python
from jen.assistant import SpeechRecognisingAssistant
from jen.functions import display_cli_calendar

assistant=SpeechRecognisingAssistant('Bot')
command=assistant.listen_to_the_user()

if "calendar" in command:
    year=assistant.take_input("Enter Year :")
    display_cli_calendar(int(year))
```

## Error Handling

Here if we get a PyAudio Error then import the configure module

```python
from jen import configure

configure.configure_pyaudio()
```
wsaio 1.0.0
An event-driven WebSocket library for Python.
Requires Python: >=3.7

wsaio is a callback-based WebSocket library for Python.

# Examples
```py
import asyncio

from wsaio import WebSocketClient


class EchoClient(WebSocketClient):
    async def on_text(self, data):
        await self.write(data)

    async def on_binary(self, data):
        await self.write(data, binary=True)


async def main(loop):
    client = EchoClient(loop=loop)

    await client.connect('wss://localhost/helloWorld')
    await client.wait_until_closed()


loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop))
```