semvec/pypi-packages huggingface dataset:
mpaia 0.1.1
My Personal AI Assistant
License: MIT
Requires Python: >=3.11

# MPAIA (My Personal AI Assistant)

A Python package for your personal AI assistant with Telegram integration and OpenAI capabilities.

## Installation

You can install MPAIA using pip:

```bash
pip install mpaia
```

Alternatively, you can install from the source:

1. Clone the repository:

   ```bash
   git clone https://github.com/sTomerG/mpaia.git
   cd mpaia
   ```

2. Install the package:

   ```bash
   pip install -e .
   ```

## Configuration

Create a `.env` file in the virtual environment with mpaia installed with the following content:

```env
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
OPENAI_API_KEY=your_openai_api_key
ALLOWED_CHAT_IDS=comma_separated_list_of_allowed_chat_ids
ADMIN_CHAT_ID=your_admin_chat_id
```

Replace the placeholders with your actual values.

## Usage

1. Create custom jobs by subclassing `TelegramMessageJob` in a new file called `custom_jobs.py`. For example:

   ```python
   from mpaia.jobs import TelegramMessageJob
   from mpaia.assistant import Assistant

   class SalaryJob(TelegramMessageJob):
       def __init__(self, chat_id: int, assistant: Assistant):
           super().__init__(
               "0 8 1 * *",  # Run on the first day of every month at 8 AM
               "Generate a friendly reminder that it's salary day",
               chat_id,
               assistant
           )
           # Add any additional initialization here

       async def execute(self, bot):
           # Optionally implement your custom execution logic here
           await super().execute(bot)
   ```

2. Create a `run_bot.py` file and run your bot:

   ```python
    import asyncio

    from custom_jobs import SalaryJob
    from dotenv import load_dotenv

    from mpaia.assistant import OpenAIAssistant
    from mpaia.telegram_bot import TelegramBot


    async def run_bot():
        load_dotenv(override=True)
        assistant = OpenAIAssistant()
        bot = TelegramBot(assistant)

        # Add custom jobs
        if bot.allowed_chat_ids:
            for chat_id in bot.allowed_chat_ids:
                bot.add_job(SalaryJob(chat_id, assistant))

        await bot.run()


    if __name__ == "__main__":
        asyncio.run(run_bot())
   ```

3. Run your bot:

   ```bash
   python run_bot.py
   ```

## Customization

- To add more custom jobs, create new classes in `custom_jobs.py` and add them to the bot in `run_bot.py`.
- Modify the `OpenAIAssistant` parameters in `run_bot.py` to change the AI model or its behavior.

## Note

Ensure that your Telegram bot has the necessary permissions to send messages in the allowed chats.

For more detailed information on the MPAIA package and its components, refer to the source code and docstrings in the `src/mpaia` directory.
circuitpython-mocks 0.3.1
A library of mock structures for soft-testing CircuitPython-based projects.
License: MIT
Requires Python: >=3.7
Keywords: blinka, circuitpython, raspberrypi, driver, test, mock

.. |ci-status| image:: https://github.com/2bndy5/CircuitPython-mocks/actions/workflows/test.yml/badge.svg
    :target: https://github.com/2bndy5/CircuitPython-mocks/actions/workflows/test.yml
    :alt: CI status
.. |rtd-badge| image:: https://img.shields.io/readthedocs/circuitpython-mocks?logo=readthedocs
    :target: https://circuitpython-mocks.readthedocs.io/en/latest/
    :alt: Documentation Status
.. |codecov-badge| image:: https://codecov.io/github/2bndy5/CircuitPython-mocks/graph/badge.svg?token=RSMPIF9995
    :target: https://codecov.io/github/2bndy5/CircuitPython-mocks
    :alt: Coverage Status
.. |pypi-downloads| image:: https://img.shields.io/pepy/dt/circuitpython-mocks?label=PyPI%20Downloads&color=blue
    :target: https://pypi.org/project/circuitpython-mocks/
    :alt: Pepy Total Downlods
.. |pypi-release| image:: https://img.shields.io/pypi/v/circuitpython-mocks
    :target: https://pypi.org/project/circuitpython-mocks/
    :alt: PyPI - Version
.. |ruff-fmt| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
    :target: https://astral.sh/
    :alt: Formatted by ruff
.. |license-badge| image:: https://img.shields.io/pypi/l/circuitpython-mocks?color=blue
    :target: https://github.com/2bndy5/CircuitPython-mocks?tab=MIT-1-ov-file#readme
    :alt: PyPI - License
.. |supported-python-versions| image:: https://img.shields.io/pypi/pyversions/circuitpython-mocks
    :alt: PyPI - Python Version


|ci-status| |rtd-badge| |codecov-badge| |pypi-release| |pypi-downloads|

|ruff-fmt| |license-badge| |supported-python-versions|

Read The Docs
=============

Documentation for this library is hosted at https://circuitpython-mocks.rtfd.io/

About this Library
==================

This is a library of mock data structures to be used in soft-testing Circuitpython-based projects.