Glqiwiapi

Latest version: v2.18.3

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 8

2.0.0

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:
python
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:
python
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](https://github.com/GLEF1X/glQiwiApi/blob/dev-2.x/glQiwiApi/qiwi/clients/wallet/methods/history.py)
* 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](https://github.com/GLEF1X/glQiwiApi/blob/dev-2.x/glQiwiApi/utils/certificates.py). 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

* `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

**Fix `check_transaction` utility method and `QiwiWrapper.check_transaction`.**

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

1.1.2

Remove unnecessary dependency - `mypy_extensions`

1.1.1

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`

1.1.0

**Full Changelog**: https://github.com/GLEF1X/glQiwiApi/compare/1.0.4...1.1.0

Page 5 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.