Skip to main content

x_nava for Python — Termux

مكتبة Python للتعامل مع WhatsApp عبر Baileys. هذه النسخة مناسبة لـ Termux على Android: لا تستخدم Node.js المضمّن الخاص بسطح المكتب، بل تعتمد على Node.js الذي يثبّته Termux.

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

التثبيت على Termux

pkg update -y
pkg install -y python nodejs-lts unzip
unzip x_nava-1.0.0-termux.zip
cd x_nava-1.0.0-termux
python -m pip install --upgrade pip
python -m pip install .

في أول تشغيل ستثبت المكتبة تلقائياً اعتماد Baileys داخل ~/.x_nava_runtime. للتثبيت اليدوي:

cd ~/.x_nava_runtime
npm install --no-audit --no-fund --save-exact

مثال سريع

import asyncio
from x_nava import MoXstarClient

async def main():
    client = MoXstarClient(auth_dir='./auth')
    client.on('qr', lambda code: print('QR:', code))
    client.on('ready', lambda _: print('x_nava جاهزة'))
    await client.start()
    await client.wait_until_ready()
    await client.wait_closed()

asyncio.run(main())

يمكن تحديد مسار Node يدوياً عبر متغير البيئة NAVAPRO_NODE، لكن الوضع الافتراضي يستخدم node الموجود في Termux.

ملاحظات Android/Termux

  • استخدم nodejs-lts وليس نسخة Node مكتبية مضمّنة.
  • يفضّل تعطيل تحسين البطارية لتطبيق Termux حتى لا ينقطع الاتصال في الخلفية.
  • الاتصال الحي يحتاج QR أو Pairing Code ورقم WhatsApp حقيقي.
  • اختبارات Python المحلية لا تتصل بواتساب.

Metadata

Release files for x-nava 1.0.0

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

Source distribution (sdist)

Source distribution for x-nava 1.0.0
File Size Uploaded
x_nava-1.0.0.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for x-nava 1.0.0
File Interpreter ABI Platform
x_nava-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.7 kB

Release files / x_nava-1.0.0.tar.gz

Download URL x_nava-1.0.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b70490fe6f83e70b3cd658effdbeb90f12d466ad9f8a260fffc4360d00c79456
BLAKE2b-256 checksum
How to use checksums
8a7098d5b99212886cf09e4ab7b62c03fe5443d25c870cbce30628dbcace8926
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / x_nava-1.0.0-py3-none-any.whl

Download URL x_nava-1.0.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84f1ed56b2eb8f0310dc91c0249071f720c5f5cb469c6797694262b3a298fc29
BLAKE2b-256 checksum
How to use checksums
97543b6c298d5fd9bca8634dd2d1e99603e0052023e5d5df17155b9cb338fc7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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