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="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 4 endpoints autenticados por X-Api-Key: consume_action, confirm_consumption, cancel_consumption e register_subscriber. Nada de painel administrativo nem cobrança — isso é feito direto pela API.

Licença

MIT

Metadata

Release files for lynkora-sdk-python 0.2.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.2.0
File Size Uploaded Provenance Actions
lynkora_sdk_python-0.2.0.tar.gz 4.9 kB Without provenance Details for lynkora_sdk_python-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 9.4 kB

Release files / lynkora_sdk_python-0.2.0.tar.gz

Download URL lynkora_sdk_python-0.2.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8cd3c51eccfa663495a0e3f65fe984725c8a492210b57a1d04ce24f7830c4372
BLAKE2b-256 checksum
How to use checksums
d1c3642c1a3ca0e45d3168ef45f671b741fc3e80042b1ab0c8dc9fc2d7cd28f6
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.2.0-py3-none-any.whl

Download URL lynkora_sdk_python-0.2.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4ffcc39c0fe8cdd7a01d922788ba60f81da278bef1788f704096c6e7c1a3a77
BLAKE2b-256 checksum
How to use checksums
16b1720b33b819d50ea1c5254a981331a09bc0c952f9aa7c00633afab403a4e7
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.2.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