Metadata-Version: 2.1
Name: navapro
Version: 0.1.0
Summary: Python-native API powered by an embedded Baileys engine
Author: NaVaPro contributors
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# NaVaPro for Python

مكتبة Python فعلية؛ المستخدم يتعامل مع Python فقط، بينما تحتوي حزمة الإصدار الذاتي على Node Runtime ومحرك Baileys داخليًا.

> غير تابعة لـ WhatsApp أو Meta. استخدمها وفق القوانين وشروط الخدمة، ولا تستخدمها للسبام.

## الاستخدام

```python
import asyncio
from navapro import MoXstarClient

async def main():
    client = MoXstarClient(auth_dir='./auth')

    @client.on('qr')
    async def qr(code):
        print('اعرض رمز QR:', code)

    @client.on('ready')
    async def ready(_):
        print('NaVaPro جاهزة')

    @client.on('messages.upsert')
    async def messages(event):
        for message in event['messages']:
            if message.text == '!ping':
                await client.send_text(message.chat_id, 'pong')

    await client.start()
    await client.wait_closed()

asyncio.run(main())
```

## التثبيت

```bash
pip install NaVaPro
```

لا تحتاج النسخة الموزعة ذاتيًا إلى تثبيت Node.js أو npm أو أي Runtime آخر يدويًا. الإصدار `0.1.0` الموزع على PyPI مخصص حاليًا لـ **Linux x86_64** لأنه يحتوي Runtime Node مدمجًا؛ ويجب إصدار wheel منفصل لكل نظام تشغيل ومعمارية إضافية.

## API

`start`, `close`, `logout`, `request_pairing_code`, `send_message`, `send_text`, `send_image`, `send_video`, `send_document`, `send_audio`, `send_location`, و`on/off` للأحداث.

اختبارات Python المحلية لا تتصل بواتساب؛ الاتصال الحي يحتاج QR أو Pairing Code ورقمًا حقيقيًا.
