kiban-link
Servicios de consulta y validación de kiban (CURP, SAT, IMSS, Buró, etc.) y administración de credenciales. En sandbox (sandbox.link.kiban.com) las ejecuciones responden test cases en lugar de llamar al proveedor.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0
- Package version: 1.0.0
- Generator version: 7.24.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://kiban.com
Requirements.
Python 3.10+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/kiban-cloud/kiban-sdk.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/kiban-cloud/kiban-sdk.git)
Then import the package:
import kiban.link
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import kiban.link
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import kiban.link
from kiban.link.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://link.kiban.com
# See configuration.py for a list of all supported configuration parameters.
configuration = kiban.link.Configuration(
host = "https://link.kiban.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with kiban.link.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kiban.link.LinkApi(api_client)
service = 'service_example' # str | Servicio del catálogo (p. ej. curp, sat, imss, bc_pf)
subservice = 'subservice_example' # str | Operación del servicio (p. ej. validate, query)
body = None # object | Datos del servicio; cada servicio define sus campos
sandbox = True # bool | Modo sandbox. Tiene que coincidir con el modo de la API key: una key de sandbox exige sandbox=true y una de producción no lo acepta. Se ignora en el host sandbox, donde ya es implícito (optional)
test_case = 'test_case_example' # str | Sandbox: nombre del test case que debe responder (optional)
test_case_id = 'test_case_id_example' # str | Sandbox: id del test case que debe responder (optional)
origin = 'origin_example' # str | Identificador libre del origen de la petición (optional)
try:
# Ejecutar un servicio de link
api_response = api_instance.execute_service(service, subservice, body, sandbox=sandbox, test_case=test_case, test_case_id=test_case_id, origin=origin)
print("The response of LinkApi->execute_service:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling LinkApi->execute_service: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://link.kiban.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| LinkApi | execute_service | POST /api/v3/{service}/{subservice} | Ejecutar un servicio de link |
| LinkApi | get_execution | GET /api/v1/{service}/{subservice}/{id} | Detalle de una ejecución |
| LinkApi | get_file | GET /api/v1/file | Descargar un archivo de una ejecución |
| LinkApi | list_executions | GET /api/v1/{service}/{subservice} | Historial de ejecuciones de un servicio |
| LinkApi | list_test_cases | GET /api/v3/{service}/{subservice}/test_case | Test cases de un servicio |
| VaultApi | create_vault | POST /api/v3/vault/na | Crear una credencial |
| VaultApi | delete_vault | DELETE /api/v3/vault/na/{id} | Borrar una credencial |
| VaultApi | get_vault | GET /api/v1/vault/na/{id} | Detalle de una credencial |
| VaultApi | list_vaults | GET /api/v1/vault/na | Listar credenciales |
| VaultApi | update_vault | PUT /api/v3/vault/na/{id} | Editar una credencial |
| VaultApi | validate_vault | POST /api/v3/{service}/{subservice}/vault | Validar una credencial para un servicio |
Documentation For Models
- ControllerMicroserviceModelApiDataDetailDto
- ControllerMicroserviceModelApiDataEventDto
- ControllerMicroserviceModelApiDataFileDto
- ControllerMicroserviceModelApiDataHttpDto
- ControllerMicroserviceModelEventDto
- ControllerMicroserviceModelExecutionPage
- ControllerMicroserviceModelMicroserviceDetailDto
- ControllerMicroserviceModelMicroserviceResumeDto
- ControllerMicroserviceModelValidationErrorDto
- ControllerMicroserviceModelVaultNameDto
- ControllerMicroserviceModelVaultValidationDto
- ControllerTestCaseModelTestCaseOutputMany
Documentation For Authorization
Authentication schemes defined for the API:
ApiKeyAuth
- Type: API key
- API key parameter name: x-api-key
- Location: HTTP header
Author
Metadata
Release files for kiban-link 1.0.0
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 |
|---|---|---|---|---|
| kiban_link-1.0.0.tar.gz | 41.9 kB | With provenance | Details for kiban_link-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kiban_link-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for kiban_link-1.0.0-py3-none-any.whl |
Total release size: 101.9 kB
Release files / kiban_link-1.0.0.tar.gz
| Download URL | kiban_link-1.0.0.tar.gz |
|---|---|
| Size | 41.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d37527e2e15d949481b59603229ccbe429e1d1019698f1bb07de15ae146d3360
|
|
BLAKE2b-256 checksum How to use checksums |
fdd00ad18d40e55ac335d9dccaa62403692a37d4c1563cfe107455b4246d2828
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / kiban_link-1.0.0-py3-none-any.whl
| Download URL | kiban_link-1.0.0-py3-none-any.whl |
|---|---|
| Size | 60.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84e11be15c92b8182c1f7a1c0f3cfe590371166bcb7d48024ef3d10e4ac63d91
|
|
BLAKE2b-256 checksum How to use checksums |
0e2c55e0d5cce96f7f4fab3b518083cff14eebfe72957e1feabd7b2184c759e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for kiban-link 1.0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kiban_link-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA 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.