Skip to main content
======
pyQiwi
======

Python Qiwi API Wrapper

* Лицензия: MIT
* Документация: https://pyqiwi.readthedocs.io.


Возможности
-----------

* Оплата любых услуг
* Переводы на любой Qiwi Кошелек
* Статистика по платежам
* История о сделанных платежах в любой промежуток времени
* Прохождение упрощенной идентификации
* Определение провайдера мобильного телефона

Установка
---------

$ pip install qiwipy


Использование
---------

import pyqiwi
wallet = pyqiwi.Wallet(token='', number='79001234567')

Быстрый туториал
----------------

Получить текущий баланс
~~~~~~~~~~~~~~~~~~~~~~~

print(wallet.balance())

Отправка платежа
~~~~~~~~~~~~~~~~

payment = wallet.send(pid=99, recipient='79001234567', amount=1.11, comment='Привет!')
example = 'Payment is {0}\nRecipient: {1}\nPayment Sum: {2}'.format(
payment.transaction['state']['code'], payment.fields['account'], payment.sum)
print(example)


Получить комиссию для платежа
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

commission = wallet.commission(pid=99, recipient='79001234567', amount=1.11)
print(commission.qw_commission.amount)


Для более подробных инструкций, посетите документацию.


=================
История изменений
=================

2.1 (6.05.2018)
---------------
* `Wallet.balance` теперь имеет базовое значение `currency` 643 (Российский рубль)
* Новый метод для идентификации кошельков: `Wallet.identification`
* Весь блок методов к истории платежей был обновлен до API v2
* Для получения квитанции по платежу был добавлен метод `Wallet.cheque`
* Если у вас по какой-то причине нет "балансов" на аккаунте, вы можете их создать при помощи `Wallet.create_account`
Запрос доступных счетов, доступных для создания реализован в `Wallet.offered_accounts`
* Создание ссылки для автозаполненных платежных форм достуно в `pyqiwi.generate_form_link`
* Вы хотите определить ID провайдера для пополнения мобильного телефона? Используйте `pyqiwi.detect_mobile`

2.0.8 (29.04.2018)
------------------

* У нас появились тесты!
* Небольшие исправления

2.0.7 (14.04.2018)
------------------

* Небольшие исправления

2.0.6 (9.03.2018)
-----------------

* Небольшие исправления

2.0.5 (6.11.2017)
-----------------

* Логгер был перенесен из `pyqiwi.logger` в `pyqiwi.apihelper.logger`
* Появился метод в `Wallet` `transaction` для получения определенной транзакции по ID и её типу.
* Вместе с этим и появился для него собственный тип: `pyqiwi.types.Transaction`
* Небольшие исправления в документации
* Небольшие исправления

2.0.4 (6.11.2017)
-----------------

* Небольшие исправления

2.0.3 (6.11.2017)
-----------------

* Небольшие исправления

2.0.2 (29.10.2017)
------------------

* Небольшие исправления

2.0.1 (29.10.2017)
------------------

* У нас появилась документация на ReadTheDocs!
* Документация в коде была широко дополнена
* Были внесены изменения в вид документации в коде

2.0 (28.10.2017)
----------------
Первое большое изменение библиотеки!

* Интересны логи? У нас появился логгер `pyqiwi` в `pyqiwi.logger`
* Хотите посмотреть счета в Qiwi? `Wallet.accounts`
* Теперь выдается не `dict`-обьекты, а что-либо из `pyqiwi/types.py`
* Все вызовы к API были перенесены в `pyqiwi/apihelper.py`
* Если у вас возникла ошибка в запросе к API, вы получите исключение из `pyqiwi/exceptions.py`

1.2.1 (24.10.2017)
------------------

* Релиз на PyPI.

1.2 (24.10.2017)
----------------

* Переименование класса `Person` в `Wallet`
* Методы класса `Payment` теперь в `Wallet`
* Класс `Payment` удален
* Нет необходимости в config'е, теперь нужно передать токен в `Wallet()` [Возможность мульти-аккаунта]
* Вместе с этим, нужно передавать токен в `get_commission` (но эта же функция находится в `Wallet` c подготовленным токеном)
* Методы `Wallet.history()` и `Wallet.stat()` требуют `datetime.datetime`, вместо `str`
* Любые обращения к f-строкам, были заменены на метод `str.format`

1.1 (5.09.2017)
---------------
* Небольшие улучшения

1.0 (5.09.2017)
---------------
* Первый релиз!

Metadata

Release files for qiwipy 2.1.6

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

Source distribution (sdist)

Source distribution for qiwipy 2.1.6
File Size Uploaded Provenance Actions
qiwipy-2.1.6.tar.gz 21.0 kB Without provenance Details for qiwipy-2.1.6.tar.gz

Built distribution (wheel)

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

Total release size: 43.0 kB

Release files / qiwipy-2.1.6.tar.gz

Download URL qiwipy-2.1.6.tar.gz
Size 21.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d5565f7b89d8c06340208381ccfa71140dcfb039fb5448bab126ecca4269b92f
BLAKE2b-256 checksum
How to use checksums
437dc34b93870c9fbc4dd75d668f4691a43492efac6967f731db28ac92483d14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.1

Release files / qiwipy-2.1.6-py3-none-any.whl

Download URL qiwipy-2.1.6-py3-none-any.whl
Size 22.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3556d4128b9cc35e30e94c670016956da262f39efda95cd2d7b598bc8bbe612f
BLAKE2b-256 checksum
How to use checksums
747a10a6f4a6beb715b6680a4b583f96c3a6ea61f17c10f004707b7c9602c1f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.1

Security for qiwipy 2.1.6

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