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
A fork of lavalink.py built for nextcord

nextcord-ext-lava is a wrapper for Lavalink which abstracts away most of the code necessary to use Lavalink, allowing for easier integration into your projects, while still promising full API coverag

nextcord-ext 4 Feb 27, 2022
Light weight Scripts and Apps for checking availability of Covid Vaccines in India. Notifies when vaccine becomes avialable in your area.

vaccine-checker Light weight Scripts and Apps for checking availability of Covid Vaccines in India. Notifies when vaccine becomes avialable in your ar

Abishek V Ashok 8 Jun 16, 2021
Solves bombcrypto newest captcha

Solves Bombcrypto newest captcha A very compact implementation using just cv2 and ctypes, ready to be deployed to your own project. How does it work I

19 May 06, 2022
A Telegram Music Tag Editor Bot that can remove almost all usernames in the music tags and add own username instead.

Music Tag Editor Bot A Telegram Music Tag Editor Bot that can remove almost all usernames in the music tags and add own username instead. It can also

14 Oct 21, 2022
This is an implementation example of a bot that periodically sends predictions to the alphasea-agent.

alphasea-example-model alphasea-example-modelは、 alphasea-agent に対して毎ラウンド、予測を投稿するプログラムです。 Numeraiのexample modelに相当します。 準備 alphasea-example-modelの動作には、

AlphaSea 11 Jul 28, 2022
Buy early bsc gems with custom gas fee, slippage, amount. Auto approve token after buy

Buy early bsc gems with custom gas fee, slippage, amount. Auto approve token after buy. Sell buyed token with custom gas fee, slippage, amount. And more.

Jesus Crypto 206 May 01, 2022
Tools convert cookies facebook menjadi token facebook.

Tools convert cookies facebook menjadi token facebook.

Muhammad Latif Harkat 2 Jul 17, 2022
SpaceManJax's open-source Discord Bot. Now on Github!

SpaceManBot This is SpaceManJax's open-source Discord.py Bot. Now on Github! This bot runs on Repl.it, which is a free online code editor. It can do a

Jack 1 Nov 16, 2021
Grape - A webbrowser with its own Search Engine

Grape 🔎 A Web Browser made entirely in python. Search Engine 🔎 Installation: F

Grape 2 Sep 06, 2022
Info & tools for reverse engineering the M6 smart fitness band

m6-reveng This repo contains information and tools for reverse engineering the $7 M6 smart fitness band. Hardware The SoC (system-on-a-chip) is a Teli

41 Dec 26, 2022
A casino discord bot written in Python

Casino Bot Casino bot is a gambling discord bot I made for my friends. It is able to play blackjack, slots, flip a coin, and roll dice. It stores ever

Connor Swislow 27 Dec 30, 2022
A telegram bot script for generating session string using pyrogram and telethon on Telegram bot

String-session-Bot Telegram Bot to generate Pyrogram and Telethon String Session. A star ⭐ from you means a lot to us! Usage Deploy to Heroku Tap on a

Wahyusaputra 8 Oct 28, 2022
Maubot azuracast - A maubot to fetch data from your radio station

Maubot Azuracast A maubot to fetch data from your radio station Setup Configure

3 Mar 14, 2022
This repository are used to give class about AWS

AWSTraining This repository are used to give class about AWS by Marco Antonio Pereira Linkedin: https://www.linkedin.com/in/marcoap To see the types o

Marco Antonio Pereira 6 Nov 23, 2022
Save data from Instagram takeout to a SQLite database

instagram-to-sqlite Save data from a Instagram takeout to a SQLite database. Mise En Place git clone https://github.com/gavindsouza/instagram-to-sqlit

gavin 8 Dec 13, 2022
Discord Bot for server hosts, devs, and admins. Analyzes timings reports & uploads text files to hastebin. Developed by https://birdflop.com.

"Botflop" Click here to invite Botflop to your server. Current abilities Analyze timings reports Paste a timings report to review an in-depth descript

Purpur 76 Dec 31, 2022
An asyncio Python wrapper around the Discord API, forked off of Rapptz's Discord.py.

Novus A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. A full fork of Rapptz's Discord.py library, with

Voxel Fox 60 Jan 03, 2023
Indian Space Research Organisation API With Python

ISRO Indian Space Research Organisation API Installation pip install ISRO Usage import isro isro.spacecrafts() # returns spacecrafts data isro.lau

Fayas Noushad 5 Aug 11, 2022
VoiceMaster-Discord-Bot - Fork from original Discord bot with max channel limit, staff role and more

VoiceMaster VoiceMaster is a discord bot created to change the way servers work,

2 Feb 28, 2022
A course on getting started with the Twitter API v2 for academic research

Getting started with the Twitter API v2 for academic research Welcome to this '101 course' on getting started with academic research using the Twitter

@TwitterDev 426 Jan 04, 2023