Skip to main content

NaVaPro for Python

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

غير تابعة لـ 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 آخر يدويًا. الإصدار 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 ورقمًا حقيقيًا.

Metadata

Release files for navapro 0.1.0

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

Built distribution (wheel)

Table of built distributions (wheels) for navapro 0.1.0
File Interpreter ABI Platform
navapro-0.1.0-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details

Release history Release notifications | RSS feed

0.2.0

5 release files

This release

0.1.0 This release

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