Skip to content

Releases: GLEF1X/glQiwiApi

2.0.4

28 Feb 12:35
Compare
Choose a tag to compare
  • Fix #15
  • Add docs for polling and webhooks

2.0.3

17 Feb 13:47
Compare
Choose a tag to compare
  • fix bug connected with unexpected behavior pay_source_filter in create_p2p_bill

2.0.2

15 Feb 20:00
Compare
Choose a tag to compare
  • fix: on json serialization error glQiwiAPI real traceback was hidden

2.0.1

14 Feb 12:58
Compare
Choose a tag to compare
  • Critical bugfix connected with incorrect work of create_p2p_bill method

2.0.0

13 Feb 18:08
Compare
Choose a tag to compare

glQiwiApi 2.x has breaking changes. It breaks backwards compatibility by introducing new breaking changes!

Features of glQiwiApi 2.x:

  • Separated concept of p2p API and wallet API so you can use it separately with help of QiwiWallet and QiwiP2PClient. Backward compatibility with glQiwiApi <= 1.1.4 is saved partially QiwiWrapper means
  • Error handling was rewritten and overthinking. Now full traceback from glQiwiApi is something like shown below:
async def main():
    async with QiwiWrapper(api_access_token="", phone_number="+") as wallet:
        # raises QiwiAPIError due to amount mustn't be negative and phone number must be in a valid format
        await wallet.to_wallet(to_number="wrong number", amount=-1) 

glQiwiApi.qiwi.exceptions.QiwiAPIError: Query syntax error (invalid data format). Can be related to wrong arguments, that you have passed to method
    * 400 HTTP status code
    * raw response {
    "code": "QWPRC-300",
    "message": "Техническая ошибка"
}
  • Polling of updates could be executed as a coroutine. So in your framework(aiogram or something else) you can do it like shown below:
from aiogram import Dispatcher

from glQiwiApi.core.event_fetching.executor import start_non_blocking_qiwi_api_polling


async def on_startup(dp: Dispatcher):
    await start_non_blocking_qiwi_api_polling()
  • Internal API of the glQiwiApi was changed for the better. Now the API methods are presented as python classes
  • Tests now cover more than 95% of critical use cases
  • QIWI Master API was fixed
  • Cache has became plugin-like, not neccessary feature
  • Self-signed SSL certificates can be easily generated using utility function. It could be helpful for aiogram webhooks either.
  • #9 fixed and now you can easily build your own proxy to add Referrer HTTP header or use built-in

1.1.4

05 Dec 21:01
Compare
Choose a tag to compare
  • loguru has beign removed cause it plodding and bad configurable. See #14
  • Polling was fixed and issues connected with it's proper work
  • Now start_polling and start_webhook entrypoints take as an argument variadic Pluggable instances, so you can run everything you want just inherit from it

1.1.3

31 Oct 18:35
Compare
Choose a tag to compare

Fix check_transaction utility method and QiwiWrapper.check_transaction.

Error traceback: AttributeError: 'str' object has no attribute 'value'

1.1.2

31 Oct 15:15
Compare
Choose a tag to compare

Remove unnecessary dependency - mypy_extensions

Stable release 1.1.1

29 Oct 14:20
Compare
Choose a tag to compare
  1. Remove _patch_callback function in glQiwiApi/utils/executor.py, that has led to exception
  2. Fix #10
  3. Change strategy of polling, add sources parameter to QiwiWrapper.transactions

Stable release 1.1.0

25 Oct 10:52
Compare
Choose a tag to compare