semvec/pypi-packages huggingface dataset:
streamlit-chat-latest 0.0.2.3
A streamlit component, to make chatbots
Requires Python: >=3.8
Keywords: chat streamlit streamlit-component

# st-chat

Streamlit Component, for a Chat-bot UI, [example app](https://share.streamlit.io/ai-yash/st-chat/main/examples/chatbot.py)

authors - [@yashppawar](https://github.com/yashppawar) & [@YashVardhan-AI](https://github.com/yashvardhan-ai)

## Installation

Install `streamlit-chat` with pip
```bash
pip install streamlit-chat 
```

usage, import the `message` function from `streamlit_chat`
```py
import streamlit as st
from streamlit_chat import message

message("My message") 
message("Hello bot!", is_user=True)  # align's the message to the right
```
   
### Screenshot

![chatbot-og](https://user-images.githubusercontent.com/90775147/210397700-5ab9e00d-a61b-4bc9-a34a-b5bd4454b084.png)
aiohttp-poe 0.0.14
A demonstration of the Poe protocol using aiohttp
Requires Python: >=3.7

# aiohttp_poe

An implementation of the Poe protocol using aiohttp.

To run it:

- Create a virtual environment (Python 3.7 or higher)
- `pip install .`
- `python -m aiohttp_poe`
- In a different terminal, run [ngrok](https://ngrok.com/) to make it publicly
  accessible

## Write your own bot

This package can also be used as a base to write your own bot. You can inherit from
`aiohttp_poe.PoeBot` to make a bot:

```python
from aiohttp_poe import PoeBot, run

class EchoBot(PoeBot):
    async def get_response(self, query, request):
        last_message = query["query"][-1]["content"]
        yield self.text_event(last_message)


if __name__ == "__main__":
    run(EchoBot())
```

## Enable authentication

Poe servers send requests containing Authorization HTTP header in the format "Bearer
<api_key>," where api_key is the API key configured in the bot settings. \

To validate the requests are from Poe Servers, you can either set the environment
variable POE_API_KEY or pass the parameter api_key in the run function like:

```python
if __name__ == "__main__":
    run(EchoBot(), api_key=<key>)
```

For a more advanced example that exercises more of the Poe protocol, see
[Catbot](./src/aiohttp_poe/samples/catbot.py).
stock-price-alert 1.0.2
A Python library for retrieving stock prices and setting price alerts

StockPriceBot
=============

StockPriceBot is a Python library that provides a Telegram bot for retrieving stock prices and setting price alerts.
With this library, users can easily get the current price of a stock, set reminders for specific price levels, and receive notifications when the price reaches the set limits.

Features
--------

- Get the current price of a stock by providing the stock symbol.
- Set price alerts for stocks with custom upper and lower limits.
- Receive notifications when the price reaches the set limits.
- Remove price alerts for specific stocks.
- List all active price alerts.

Installation
------------

You can install StockPriceBot using pip:

.. code-block:: bash

   pip install stockpricebot

Usage
-----

To use StockPriceBot in your Python code, you need to obtain a Telegram Bot API token. You can create a bot and get the token from the BotFather on Telegram.

Here's an example of how to use the library:

.. code-block:: python

   import os
   from stockpricebot import StockPriceBot

   # Get the bot token from the environment variable.
   bot_token = os.environ["BOT_TOKEN"]

   # Create a new bot instance.
   bot = StockPriceBot(bot_token)

   # Start the bot.
   bot.run()

Methods
-------

- ``get_price(ticker)``: Gets the current price of the given stock.
- ``set_reminder(user_id, ticker, upper_limit, lower_limit)``: Sets a price alert for the given user and stock.
- ``remove_reminder(user_id, ticker)``: Removes a price alert for the given user and stock.
- ``list_reminders(user_id)``: Lists all active price alerts for the given user.
- ``run()``: Starts the bot.

Contributing
------------

Contributions are welcome! If you encounter any issues, have suggestions, or want to contribute to the project, please feel free to submit a pull request or open an issue on the `GitHub repository <https://github.com/piritheeviraman/stock-price-alert-lib>`_.

License
-------

StockPriceBot is released under the MIT License. See the `LICENSE <https://github.com/piritheeviraman/stock-price-alert-lib/blob/main/LICENSE>`_ file for more details.

For detailed documentation and examples, please refer to the `GitHub repository <https://github.com/piritheeviraman/stock-price-alert-lib>`_.