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.0.tar.gz
(3.0 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.0.tar.gz.
File metadata
- Download URL: keyport-1.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
488e3831151173703248e4a4562b9789de04a9cdf0897588a8b495d03a4fcc32
|
|
| MD5 |
f0dc2b163456b2874c7e579fb5093397
|
|
| BLAKE2b-256 |
36aab0778ad90a91730923bc7b8e9ef62426448e2214da79129851d7d84b102b
|
File details
Details for the file keyport-1.0.0-py3-none-any.whl.
File metadata
- Download URL: keyport-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 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 |
2014d7305d6cf163697fee54ed69ee21155f69a60f9409c1214bdaf27d9c9e3f
|
|
| MD5 |
efc0516f7856655433c86b4963fff106
|
|
| BLAKE2b-256 |
4521fa7523b59e908c265eb9697a3d367d30d56c992df95ce6b93acb7104e430
|