Skip to main content

PyJetra

یک کتابخانه‌ی مدرن پایتون برای ساخت ربات‌های پیام‌رسان جترا (همگام و ناهمگام). A modern Python wrapper for the Jetra Bot API (Sync & Async).

PyJetra Logo

نصب / Installation

pip install pyjetra

نیازمند پایتون ۳.۷ به بالا (Requires Python 3.7+)

امکانات / Features

· پشتیبانی از هر دو حالت همگام (Sync) و ناهمگام (Async) · پشتیبانی کامل از تمام متدهای Jetra Bot API (پیام، رسانه، وب‌هوک و...) · مدیریت وضعیت (FSM) برای گفتگوهای چندمرحله‌ای · دکمه‌های شیشه‌ای (Inline Keyboards) و فیلترهای پیشرفته · قابلیت استفاده از وب‌هوک با هندلرهای آماده (WSGI/ASGI)

شروع سریع / Quick Start

from pyjetra import JetraBot, CommandFilter

bot = JetraBot("YOUR_BOT_TOKEN")

@bot.on_message(filters=[CommandFilter("start")])
def start(msg):
    msg.reply("سلام! PyJetra با موفقیت متصل شد.")

bot.poll()

حالت ناهمگام / Async Example

import asyncio
from pyjetra import AsyncJetraBot, CommandFilter

async def main():
    async with AsyncJetraBot("YOUR_BOT_TOKEN") as bot:
        @bot.on_message(filters=[CommandFilter("start")])
        async def start(msg):
            await msg.reply("سلام از حالت Async!")
        
        await bot.start_polling()

asyncio.run(main())

مستندات و لینک‌ها / Links

· مستندات رسمی جترا (Jetra Docs): https://jetra.ir/docs/bots · مخزن گیت‌هاب (GitHub): https://github.com/lyrdaadhrpyk802-ux/pyjetra · گزارش مشکلات (Issues): https://github.com/lyrdaadhrpyk802-ux/pyjetra/issues

توسعه‌دهنده / Developer

Ali VEX

· پروفایل جترا (Jetra Profile): https://jetra.ir/UserBoT · ایمیل (Email): lyrdaadhrpyk802@gmail.com

Metadata

Release files for pyjetra 1.7.5

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

Source distribution (sdist)

Source distribution for pyjetra 1.7.5
File Size Uploaded Provenance Actions
pyjetra-1.7.5.tar.gz 58.7 kB Without provenance Details for pyjetra-1.7.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyjetra 1.7.5
File Interpreter ABI Platform Actions
pyjetra-1.7.5-py3-none-any.whl Python 3 none any Details for pyjetra-1.7.5-py3-none-any.whl

Total release size: 82.7 kB

Release files / pyjetra-1.7.5.tar.gz

Download URL pyjetra-1.7.5.tar.gz
Size 58.7 kB
Tags Source
SHA-256 checksum
How to use checksums
11328c77ae8642b5c82d5788a3d19c6b3ef8faafee8c5fa0b8168e8f78f99fe2
BLAKE2b-256 checksum
How to use checksums
082565bc1c911965bebb69572f4a065a22aa6371146d33ec51bc32a631537567
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / pyjetra-1.7.5-py3-none-any.whl

Download URL pyjetra-1.7.5-py3-none-any.whl
Size 24.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a3224c21bfca5f11c5551938d93c581143fc6dd8d2bc592dec473b728a22b7c
BLAKE2b-256 checksum
How to use checksums
2b0af23daf4ae386351313660bda3b485e2a86943d7708acd79272b0aa365720
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for pyjetra 1.7.5

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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