Skip to main content

lynkora-sdk-python

SDK Python pra integrar com a API pública do Lynkora — registrar assinantes e controlar consumo (reservar, confirmar, cancelar). Zero dependências de runtime (usa urllib.request da biblioteca padrão), cliente síncrono.

Documentação completa dos endpoints: docs.lynkora.dev/docs/para-desenvolvedores/sdks.

Instalação

pip install lynkora-sdk-python

Uso

import os
from lynkora_sdk import LynkoraClient

lynkora = LynkoraClient(
    api_key=os.environ["LYNKORA_API_KEY"],
    # base_url é opcional — default "https://api.lynkora.dev"
)

result = lynkora.consume_action(
    subscriber_id="sub_123",
    action_slug="generate-report",
)

lynkora.confirm_consumption(result["reservationId"])

Erros da API chegam como LynkoraApiError, com status_code, a mensagem (via str(err)) e o corpo original da resposta em body:

from lynkora_sdk import LynkoraApiError

try:
    lynkora.consume_action(subscriber_id="sub_123", action_slug="generate-report")
except LynkoraApiError as err:
    print(err.status_code, str(err), err.body)

Escopo

Só os 5 endpoints autenticados por X-Api-Key: consume_action, confirm_consumption, cancel_consumption, register_subscriber e list_entitlements. Nada de painel administrativo nem cobrança — isso é feito direto pela API.

Licença

MIT

Metadata

Release files for lynkora-sdk-python 0.3.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 lynkora-sdk-python 0.3.0
File Size Uploaded Provenance Actions
lynkora_sdk_python-0.3.0.tar.gz 5.4 kB Without provenance Details for lynkora_sdk_python-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lynkora-sdk-python 0.3.0
File Interpreter ABI Platform Actions
lynkora_sdk_python-0.3.0-py3-none-any.whl Python 3 none any Details for lynkora_sdk_python-0.3.0-py3-none-any.whl

Total release size: 10.1 kB

Release files / lynkora_sdk_python-0.3.0.tar.gz

Download URL lynkora_sdk_python-0.3.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c7eb26c31a2efd94e185d01ece6d7046eb707e9c083ab38414a58ad9ec26dddb
BLAKE2b-256 checksum
How to use checksums
381180645841d034f6d2b3f901f23a34769910b594d5267dbc70da1d85541221
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / lynkora_sdk_python-0.3.0-py3-none-any.whl

Download URL lynkora_sdk_python-0.3.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
166b2d7e36659347f4a999d21c8a9fd792c4bf95484c0eb98d57bd7a534ecfb6
BLAKE2b-256 checksum
How to use checksums
82b125c6ce1c1e1fbf6dc75818b7e4ec119090e9164e1ebcbaeb4e84dca3ebdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for lynkora-sdk-python 0.3.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.

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