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 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lynkora_sdk_python-0.2.1.tar.gz | 4.9 kB | Without provenance | Details for lynkora_sdk_python-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lynkora_sdk_python-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for lynkora_sdk_python-0.2.1-py3-none-any.whl |
Total release size: 9.4 kB
Release files / lynkora_sdk_python-0.2.1.tar.gz
| Download URL | lynkora_sdk_python-0.2.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
079ee5ae5f35a0a97a2b9b2fea78b447a0b735ec0e3a80c62ff99d553fa025e7
|
|
BLAKE2b-256 checksum How to use checksums |
c3435a8148502b5c88122f82d54b43715ba3f2681a2a68a07adb3564ed24a7cf
|
| 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.1-py3-none-any.whl
| Download URL | lynkora_sdk_python-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d477bfb5c04fb424d23b8cde9c860ccd51c9cba8e2940df3026cb273ff18039e
|
|
BLAKE2b-256 checksum How to use checksums |
c5e46f19797281a1ad7e85aae62d17fe79687727d03595c964fa885d6e25ab35
|
| 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.1
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.