Асинхронный клиент для Loya Loyalty API
Project description
loya-client
Асинхронный Python-клиент для Loya Loyalty API с автоматической авторизацией через PLAY2AUTH_SESS_ID.
Установка
pip install loya-client
Быстрый старт
from loya_client import LoyaClient
async with LoyaClient(
base_url="http://10.33.33.124:9000",
email="express@mail.ru",
password_hash="hash",
apikey="apikey",
) as client:
card = await client.get_card_by_number("7770000002302")
print(card)
Особенности
- Автоматический логин и релогин
- Поддержка сессий через куки
- Чистый, модульный код
- Полная поддержка async/await
- Готов к использованию в FastAPI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
loya_client-0.2.0.tar.gz
(5.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file loya_client-0.2.0.tar.gz.
File metadata
- Download URL: loya_client-0.2.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2197e9388ca80a6c561bb056c999ac4fed05037c54c16f2a2104407adfb05062
|
|
| MD5 |
9b8209f46953064d38181d3089698e96
|
|
| BLAKE2b-256 |
a4ef7eaa08f9192113a4dae971fe9c6ae73bc79bb05fee1b62c5323951ab8a4d
|
File details
Details for the file loya_client-0.2.0-py3-none-any.whl.
File metadata
- Download URL: loya_client-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebed9fab1fbb1cbe20778a0907ed1f342f0a3290071c4a4930aeca11e4757b79
|
|
| MD5 |
0b0c5c8238a5b2e338b3b1589fe9a0bb
|
|
| BLAKE2b-256 |
d8069f04405ecb23d8292ab7be4e71253935af8e1d1741cbe7b45b69d7bd1ba3
|