Skip to main content

LakeCoin Python API Wrapper

Простая и удобная Python-библиотека для работы с API мерчантов LakeCoin.

Установка

Установить библиотеку можно через pip:

pip install lakecoin

Быстрый старт

Вот простой пример использования:

import lakecoin
import os

# Рекомендуется хранить токен в переменных окружения, а не в коде
MERCHANT_TOKEN = "ВАШ_API_ТОКЕН"

# Инициализация клиента
api = lakecoin.LakeCoinAPI(merchant_token=MERCHANT_TOKEN)

try:
    # 1. Проверим баланс
    balance_info = api.get_balance()
    print(f"Текущий баланс: {balance_info['balance']} LKC")

    # 2. Создадим счет на оплату
    print("\nСоздаем счет на 100 LKC...")
    payment_request = api.create_payment_request(
        amount=100,
        description="Оплата заказа #12345"
    )
    request_id = payment_request['payment_request_id']
    print(f"Счет создан! ID: {request_id}")
    print(f"Ссылка для оплаты: {payment_request['payment_url']}")

except lakecoin.AuthenticationError as e:
    print(f"Ошибка аутентификации: {e}. Проверьте ваш API-токен.")
except lakecoin.LakeCoinError as e:
    print(f"Произошла ошибка API: {e}")

Обратная связь и поддержка

Если вы обнаружили ошибку или у вас есть предложения по улучшению, пожалуйста, свяжитесь с нами по почте или через форму обратной связи на нашем сайте.

Лицензия

Этот проект распространяется под лицензией MIT.

Metadata

Release files for lakecoin 0.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 lakecoin 0.1.0
File Size Uploaded Provenance
lakecoin-0.1.0.tar.gz 5.3 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 12.0 kB

Release files / lakecoin-0.1.0.tar.gz

Download URL lakecoin-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ada2f90fd503d3057c7013381b97a1327f3f872c6a85367865024675c9187ba1
BLAKE2b-256 checksum
How to use checksums
04f5290de740bcdbaf4a59d481d8a383410657c4ba57e2094a41d3cf72480eb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release files / lakecoin-0.1.0-py3-none-any.whl

Download URL lakecoin-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c5ae5674569b577ae097b200fde3f9a70d6aa3307f3b9d8229b132aa26bb24f
BLAKE2b-256 checksum
How to use checksums
b365e3977f50748da426e92774bd44e0e2913edb508c1ff3c7e37e72a0970be5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Security for lakecoin 0.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

0.1.0 This release

2 release files 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