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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| x_nava-1.0.0.tar.gz | 9.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| x_nava-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.7 kB
Security for x-nava 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.