Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

keyport-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for keyport-1.0.0.tar.gz
Algorithm Hash digest
SHA256 488e3831151173703248e4a4562b9789de04a9cdf0897588a8b495d03a4fcc32
MD5 f0dc2b163456b2874c7e579fb5093397
BLAKE2b-256 36aab0778ad90a91730923bc7b8e9ef62426448e2214da79129851d7d84b102b

See more details on using hashes here.

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

Hashes for keyport-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2014d7305d6cf163697fee54ed69ee21155f69a60f9409c1214bdaf27d9c9e3f
MD5 efc0516f7856655433c86b4963fff106
BLAKE2b-256 4521fa7523b59e908c265eb9697a3d367d30d56c992df95ce6b93acb7104e430

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page