Official Python SDK for the live KeyPort public API
Project description
keyport-python
Official Python SDK for the live KeyPort public API.
Install
pip install keyport
Direct API key usage
from keyport import KeyPort
client = KeyPort("kp_live_xxx")
result = client.validate("LICENSE-KEY", version="1.2.0")
Config file usage
{
"api_key": "kp_live_xxx",
"base_url": "https://api.keyport.sbs/api/v1",
"timeout": 10
}
from keyport import KeyPort
client = KeyPort.from_config_file("keyport.json")
detail = client.get_license("LICENSE-KEY")
API key in code, rest from config
from keyport import KeyPort
client = KeyPort.from_config_file(
"keyport.json",
api_key="kp_live_from_env",
)
Supported operations
validate(license_key, version=None, device_id=None)get_license(license_key)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
keyport-1.0.1.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file keyport-1.0.1.tar.gz.
File metadata
- Download URL: keyport-1.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7356ac677e0ae4de09da21f5a686f5c074ca80c5dc951901331aa70c1d9310d4
|
|
| MD5 |
e5f9c0f4bcc8cd3300ee9590c47e7eb0
|
|
| BLAKE2b-256 |
a075cf5a3f9f7027c0e43ff5ad673a6d66831977b31e3c9181b7ac8cdafd265e
|
File details
Details for the file keyport-1.0.1-py3-none-any.whl.
File metadata
- Download URL: keyport-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e3f1a755bf9887fd5a8b5b1351d8255356a33554826cba1eb928a5efe7e523b
|
|
| MD5 |
e33beedba109f8163aeb353183ab12f3
|
|
| BLAKE2b-256 |
9651bd1b14ed6dac19e210c72a3518e38f95b00df16fc7c902e623e0ba63a6b7
|