Skip to main content

alt text

Библиотека LAVAPI была создана, дабы облегчить работу c официалным API платежной системы LAVA. В ней представлены все методы, присутствующие в официальной документации.

Установка

Для корректной установки LAVAPI необходимо установить версию Python 3.6 и выше. Далее достаточно открыть cmd и ввести простую команду:

pip install LAVAPI

Возможности

• wallet_list - Список кошельков
• invoice_create - Выставить счёт
• is_paid - Получить информацию о счёте
• invoice_set_webhook - Установка URL для WebHook
• withdraw_create - Создание вывода
• withdraw_info - Информация о выводе
• transfer_create - Создание перевода
• transfer_info - Информация о переводе
• transactions_list - Список всех транзакций

Подготовка к использованию.

Для того чтобы начать пользоваться библиотекой, нужно получить Token. Его можно получить по этой ссылке

Примеры использования

from LAVAPI import LAVAPI


TOKEN = "YOUR_API_KEY"
api = LAVAPI(TOKEN)

invoice = api.invoice_create(sum = 10.00, wallet_to = "YOR WALLET NUMBER", comment = "LAVAPI invoice_create test!") # Создать счёт
invoice_check = api.is_paid(id = invoice["id"]) # Получить информацию о счете

wallet_list = api.wallet_list() # Получить информацию о кошельках

api.invoice_set_webhook(url="YOR URL") # Установка URL для отправки HTTP-уведомлений

withdraw = api.withdraw_create(account = "YOR WALLET NUMBER", amount=1000.00, service="card", wallet_to="5221610543444123") # Создание вывода
withdraw_info = api.withdraw_info(id=withdraw['id']) # Получить информацию о выводе

transfer = api.transfer_create(account_from="YOR WALLET NUMBER", account_to="ANOTHER WALLET NUMBER", amount=100.00) # Создать перевод
transfer_info = api.transfer_info(id=transfer["id"]) # Получить информацию о переводе

transactions_list = api.transactions_list(transfer_type="withdraw", account="YOR WALLET NUMBER", limit=50, ) # Список транзакций

License

GNU General Public License (GPL)

Metadata

Release files for LAVAPI 1.0

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

Source distribution (sdist)

Source distribution for LAVAPI 1.0
File Size Uploaded Provenance Actions
LAVAPI-1.0.tar.gz 4.8 kB Without provenance Details for LAVAPI-1.0.tar.gz

Release files / LAVAPI-1.0.tar.gz

Download URL LAVAPI-1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
36a3d2c199c21805a67a0f0eeb524b3508b03b0f8852a474b92b0fbda8b4d707
BLAKE2b-256 checksum
How to use checksums
cc19326938f23eb9110368161067ca68debd07a7455801bb88d61053e76fb34b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Security for LAVAPI 1.0

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.

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file No provenance

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