Library for working with QIWI API.

Overview

Асихронная библиотека для работы с QIWI Api

Latest PyPI package version

Установка

Установить новейшую версию можно командой:

pip install -U https://github.com/qxtony/qiwimaster/archive/main.zip

Установить новейшую версию c PyPI:

pip install qiwimaster

Примеры

Авторизация

from qiwimaster import QIWIApi
import asyncio

api = QIWIApi(token="", phone=89999999999) # token можно получить на https://qiwi.com/api.

Получение баланса

from qiwimaster import QIWIApi
import asyncio

api = QIWIApi(token="", phone=89999999999) # token можно получить на https://qiwi.com/api.

async def main():
   print(await api.balance())

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Перевод средств другому человеку

from qiwimaster import QIWIApi
import asyncio

api = QIWIApi(token="", phone=89999999999) # token можно получить на https://qiwi.com/api.

async def main():
   print(await api.pay(number="+7999999999", amount=100, comment="лови сотку!"))

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Выставление счёта

from qiwimaster import QIWIApi
import asyncio

api = QIWIApi(auth_key="") # auth_key можно получить на https://qiwi.com/p2p-admin/transfers/api.

async def main():
   a = await api.bill(price=100, lifetime=10, comment="тестовый счёт")
   print(a)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Проверка счёта на оплату

from qiwimaster import QIWIApi
import asyncio

api = QIWIApi(auth_key="") # auth_key можно получить на https://qiwi.com/p2p-admin/transfers/api.

async def main():
   result = await api.bill(price=1, lifetime=10, comment="тестовый счёт")

   print(f"Ссылка для оплаты: {result['payUrl']}")
   bill_id = result["billId"]

   while True:
     check_pay = await api.check(bill_id)
     if check_pay["status"]["value"] == "PAID":
         print("Счёт оплачен!")
         exit(0)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Обратите внимание, что для выставление счёта используется auth_key, а для получения баланса и перевода token и phone. Пожалуйста, не перепутайте.

Owner
qxtony
qxtony
This script books automatically a slot on Doctolib in one of the public vaccination centers in Berlin.

BOOKING IN BERLINS VACCINATION CENTERS This python script books automatically a slot on Doctolib in one of the public vaccination centers in Berlin. T

17 Jan 13, 2022
Discord bot built using Python. through this you can get information about the upcoming matches, scoreboard, live score

IPL-bot This is a Discord bot built using Python. through this you can get information about the upcoming matches, scoreboard, live score, and many mo

0 Dec 23, 2021
Support for Competitive Coding badges to add in Github readme or portfolio websites.

Support for Competitive Coding badges to add in Github readme or portfolio websites.

Akshat Aggarwal 2 Feb 14, 2022
A Python IRC bot with dynamically loadable modules

pybot This is a modular, plugin-based IRC bot written in Python. Plugins can bedynamically loaded and unloaded at runtime. A design goal is the abilli

Jeff Kent 1 Aug 20, 2021
MemeBot - A discord bot that tracks how good people's memes are

MemeBot A discord Meme "Karma" Tracking bot Dependancies Make sure you have pymongo installed and a mongodb cluster setup with two collections. pip in

Uday Sharma 3 Aug 10, 2022
🐍 Mnemonic code for generating deterministic keys, BIP39

python-mnemonic 🐍 Mnemonic code for generating deterministic keys, BIP39 Installation To install this library and its dependencies use: pip install m

9 Dec 22, 2022
An inline real-time media searching robot without any database.

MediaBuddy A Telegram Inline media searching robot without any database. About mediaBuddy is an inline media searching robot. If you have so many movi

Renjith Mangal 28 Oct 21, 2022
Telegram Bot to learn English by words and more.. ( in Arabic )

Get the mp3 files Extract the mp3.rar on the same file that bot.py on install requirements pip install -r requirements.txt #Then enter you bot token

Plugin 10 Feb 19, 2022
send sms via grafana alert webhook

notifier fire alarm What does this project do: the aim of this project is to send alarm notification from grafana alert manager via kavenegar api. sta

Ali Soltani 4 Oct 20, 2021
Telegram bot that sends new offers from otomoto.pl

Telegram bot that sends new offers under certain filters from otomoto.pl How to use this bot? Install requirements with pip install -r requirements.tx

Mikhail Zanka 1 Feb 14, 2022
A Discord bot that automatically saves SHSH blobs for all of your iOS devices.

AutoTSS AutoTSS is a Discord bot that automatically saves SHSH blobs for all of your iOS devices. Want a CLI automatic blob saver? Check out AutoTSS-c

adam 79 Dec 13, 2022
A Python library for inserting an reverse shell attached to Telegram in any Python application.

py tel reverse shell the reverse shell in your telgram! What is this? This program is a Python library that you can use to put an inverted shell conne

Torham 12 Dec 28, 2022
PESU Academy Discord Bot built for PESsants and PESts of PES University

PESU Academy Bot PESU Academy Discord Bot built for PESsants and PESts of PES University You can add the bot to your Discord Server using this link. O

Aditeya Baral 0 Nov 16, 2021
A file-based quote bot written in Python

Let's Write a Python Quote Bot! This repository will get you started with building a quote bot in Python. It's meant to be used along with the Learnin

0 Jan 20, 2022
Utility for converting IP Fabric webhooks into a Teams format

IP Fabric Webhook Integration for Microsoft Teams and/or Slack Setup IP Fabric Setup Go to Settings Webhooks Add webhook Provide a name URL will b

Community Fabric 1 Jan 26, 2022
A file-based quote bot written in Python

Let's Write a Python Quote Bot! This repository will get you started with building a quote bot in Python. It's meant to be used along with the Learnin

Jyoti prakash Rout 1 Jan 08, 2022
A module grouping multiple translation APIs

translatepy (originally: translate) An aggregation of multiple translation API Translate, transliterate, get the language of texts in no time with the

349 Jan 06, 2023
A chatbot that helps you set price alerts for your amazon products.

Amazon Price Alert Bot Description A Telegram chatbot that helps you set price alerts for amazon products. The bot checks the price of your watchliste

Rittik Basu 24 Dec 29, 2022
PyFIR - Python implementations of Finite Impulse Response (FIR) filters

pyFIR Python implementations of Finite Impulse Response (FIR) filters. The algorithms are mainly (but not strictly) the ones described in WEFERS, Fran

Davi Carvalho 4 Feb 12, 2022
A Telegram Music Bot with proper functions written in Python with Pyrogram and Py-Tgcalls.

⭐️ Yukki Music Bot ⭐️ A Telegram Music Bot written in Python using Pyrogram and Py-Tgcalls Ready to use method A Support Group and ready-to-use runnin

Shikhar Kumar 1000 Jan 03, 2023