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.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 lynkora-sdk-python 0.1.0
File Size Uploaded Provenance Actions
lynkora_sdk_python-0.1.0.tar.gz 4.8 kB Without provenance Details for lynkora_sdk_python-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 9.2 kB

Release files / lynkora_sdk_python-0.1.0.tar.gz

Download URL lynkora_sdk_python-0.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
760a78f0901e6f184996af04301d408a99e0d783358e29c5f32dbf502e05abcd
BLAKE2b-256 checksum
How to use checksums
1669770f483a8c4f5d0e17ef546a628f5df69bba18a6fbcc8160b190574a9d57
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.1.0-py3-none-any.whl

Download URL lynkora_sdk_python-0.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3faad58b3b895a72b7adf48b19fbf72b404f455960328eb3ae1c7a6b7ed1fb4e
BLAKE2b-256 checksum
How to use checksums
6397e7f364ba9d1693c2eb6293c0acf052404578312aaf1228246f25530a7f91
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.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.

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