Python SDK for MyTonWallet Pay API
Project description
mtwpay
Асинхронный Python клиент для MyTonWallet Pay API
📌 О проекте
mtwpay — асинхронный Python клиент для работы с MyTonWallet Pay API.
Позволяет создавать счета, получать ссылки на оплату и обрабатывать платежи полностью асинхронно.
📖 Документация
💬 Сообщество
Присоединяйтесь к нашему чату в Telegram: @mtwpay
Quick start
import asyncio
from mytonwallet_pay import MTWPay
from datetime import datetime, timedelta
async def main():
mtw_pay = MTWPay(token="YOUR_TOKEN", project_id=0)
inv = await mtw_pay.create_invoice(amount=300000000, coin="TON", validUntil=datetime.now()+timedelta(minutes=5), description="My internal order info (id in your system, etc)")
return inv.invoiceLink # Ссылка для оплаты счёта
if __name__ == "__main__":
print(asyncio.run(main()))
📦 Основные возможности
- ✅ Асинхронный клиент на
aiohttp - ✅ Полная поддержка MyTonWallet Pay API
- ✅ Быстрое создание счетов и получение ссылок для оплаты
- ✅ Совместимость с Python 3.10+
💖 Поддержка проекта
Вы можете поддержать разработчиков донатом:
| Сеть | Адрес |
|---|---|
| TON | UQCekZTSqysK4OUQFovzI31CILQj0GGjnYxBV77HlK2Zv1BM |
📝 Лицензия
Проект распространяется под лицензией MIT.
📌 Контакты и обратная связь
- Telegram: @mtwpay
- GitHub Issues: открывайте любые баги или предложения прямо в репозитории.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mtwpay-1.0.1.tar.gz.
File metadata
- Download URL: mtwpay-1.0.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32636e70423d16feab0272302774480456130843eaafff985a592ea91b934a62
|
|
| MD5 |
db9d7940b5216a82135ab0f62848efc4
|
|
| BLAKE2b-256 |
a8742fc8daa6ff1589902e1139801d2e5860df1b5805e9e711b98672a837bab8
|
File details
Details for the file mtwpay-1.0.1-py3-none-any.whl.
File metadata
- Download URL: mtwpay-1.0.1-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3734d1ce370042b464c865792f4290005cdf46fed63ee1698f43afdeb0729f1f
|
|
| MD5 |
fa98be5c12677394188ab48926307a8b
|
|
| BLAKE2b-256 |
5cb5b1e765bcf8eaecd5d15841dd553926636a5b2a446e13389547b391211967
|