Metadata-Version: 2.4
Name: velmu
Version: 1.0.0
Summary: A Python wrapper for the Velmu API
Author-email: Velmu Team <dev@velmu.com>
License: MIT License
        
        Copyright (c) 2025 Velmu
        
        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.
        
Project-URL: Homepage, https://velmu.com
Project-URL: Bug Tracker, https://github.com/velmu/issues
Keywords: velmu,api,wrapper,bot,sdk
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp>=3.8.0
Requires-Dist: python-socketio>=5.0.0
Requires-Dist: websockets>=10.0
Dynamic: license-file

# Velmu Python SDK

Une bibliothèque Python moderne et facile à utiliser pour interagir avec l'API Velmu et créer des bots puissants.

## Installation

Vous pouvez installer la bibliothèque via pip (une fois publiée) ou directement depuis les sources :

```bash
pip install velmu
```

Ou en local :

```bash
pip install .
```

## Exemple Rapide

Voici un bot simple qui répond "Pong !" quand on envoie `!ping`.

```python
import velmu
import asyncio

class MyBot(velmu.Client):
    async def on_ready(self):
        print(f'Connecté en tant que {self.user.username}')

    async def on_message(self, message):
        # Ne pas répondre à soi-même
        if message.user.id == self.user.id:
            return

        if message.content == '!ping':
            await message.channel.send('Pong !')

    async def on_member_join(self, member):
        print(f'{member.user.username} a rejoint le serveur !')

# Remplacez par votre token
TOKEN = "VOTRE_TOKEN_ICI"

client = MyBot()
client.run(TOKEN)
```

## Fonctionnalités Clés

- **Asyncio** : Construit sur `asyncio` et `aiohttp` pour des performances maximales.
- **Socket.IO** : Connexion temps réel robuste avec la Gateway Velmu.
- **Objets Typés** : Tout est objet (`Message`, `User`, `Channel`) pour une autocomplétion parfaite.

## Événements Disponibles

- `on_ready()` : Appelé quand le bot est connecté.
- `on_message(message)` : Appelé à chaque nouveau message.
- `on_message_delete(message)` : Appelé quand un message est supprimé.
- `on_message_update(before, after)` : Appelé quand un message est modifié.
- `on_member_join(member)` : Appelé quand un membre rejoint un serveur.
- `on_member_remove(member)` : Appelé quand un membre quitte un serveur.

## Licence

Distribué sous la licence MIT. Voir `LICENSE` pour plus d'informations.
