Skip to main content

Advanced Rubika Keypad Builder for rubpy using rubka logic.

Project description

rubmix

یک کتابخانه برای تبدیل کیبورد های روبکا به روبپای سازنده روبکا: Mehdi Ahmadi | https://github.com/Mahdy-Ahmadi سازنده روبپای: Shayan Heidari | https://github.com/shayanheidari01 *** اگر ناراضی هستید به @Erfan_mirdehghan در روبیکا پیام دهید *** این دو کتابخانه به همراه این نصب می شوند

نصب

pip install rubmix

استفاده

#برای تبدیل کردن کیبورد های روبکا به روبپای
from rubmix import converter
# اگر خواستید می توانید برای ساخت کیبورد از بیلدر روبکا که در روبمیکس هست استفاده کنید
from rubmix import builders
# به این شکل باید ازش استفاده کنید
builders.InlineBuilder
# یا میتوانید از خود بیلدر روبکا استفاده کنید 
from rubka.button import InlineBuilder

#یک تابع بر ای تبدیل کردن میسازیم
def conv(keyboard):
    return converters.rubmix_to_keypad(keyboard)
#ساخت خود کیبورد با روبکا
inline = (
        InlineBuilder()
        .row( 
            InlineBuilder().button_textbox(
                id="enter_name",
                title="📝 وارد کردن نام",
                type_line="SingleLine",
                type_keypad="String",
                place_holder="نام خود را وارد کنید...",
                default_value=""
            )
        )
    .build()
)
#تست ارسال
@bot.on_update()
def main(bot,m: Update):
    m.reply("hi",inline_keypad=conv(inline))

اگر پیشنهادی دارید یا باگ دیدید، خوشحال می‌شم issue بزنید 🌱

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rubmix-1.0.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rubmix-1.0.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file rubmix-1.0.1.tar.gz.

File metadata

  • Download URL: rubmix-1.0.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for rubmix-1.0.1.tar.gz
Algorithm Hash digest
SHA256 63ec956b3eee2ca94cb9e5f139c8c4fe43f330a03f653c72b49f42668009536d
MD5 fe02a718d7e4c7ce7b744f713a6d3af8
BLAKE2b-256 cf303a2150b43c3ed439f6724b724baab5b00d1d65f07b0352e0a9dd0f83ecb2

See more details on using hashes here.

File details

Details for the file rubmix-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: rubmix-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for rubmix-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4423f9fbb70d2572cb6e8d20167303415f8501bf57ae82d6d66ac9ae1c7bdcf5
MD5 d68ac05946d8b28c6f0d1cd6488a41c4
BLAKE2b-256 25d5fc094fd5a338897d5c277f8819e82befe6344eccc05bae46af6389418c88

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page