Skip to main content

NaVaPro for Python

مكتبة Python فعلية؛ المستخدم يتعامل مع Python فقط، بينما تحتوي الحزمة على Runtime داخلي ومحرك مراسلة مضمّن.

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

الاستخدام

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())

التثبيت

pip install NaVaPro

لا تحتاج النسخ الرسمية الموزعة ذاتيًا إلى تثبيت Node.js أو npm أو أي Runtime آخر يدويًا. يصدر PyPI ملفًا مناسبًا لكل منصة: Linux x86_64 وLinux ARM64 وWindows x64 وmacOS Intel وmacOS Apple Silicon. على Android/Termux يُستخدم Runtime الموجود في Termux عبر pkg install nodejs-lts، لأن Android ليس هدفًا مدعومًا من Wheels سطح المكتب.

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 ورقمًا حقيقيًا.

Metadata

Release files for navapro 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for navapro 0.2.0
File
navapro-0.2.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
navapro-0.2.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details
navapro-0.2.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details
navapro-0.2.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
navapro-0.2.0-py3-none-macosx_10_15_x86_64.whl Python 3 none macOS 10.15+ x86-64 Details

Total release size: 276.4 MB

Release history Release notifications | RSS feed

This release

0.2.0 This release

5 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page