Skip to main content

LicenseManagerSdk — Python

SDK cliente para a API de validação do LicenseManager.

Instalação

pip install licensemanager-sdk

Uso

from licensemanager_sdk import LicenseManagerClient, LicenseManagerException

client = LicenseManagerClient(
    base_url   = "https://licensemanager-api.enzojb.com.br",
    token      = "seu-token",
    license_id = "guid-da-licenca",
)

try:
    login = client.login("usuario@empresa.com")
    if login.authorized:
        client.heartbeat(login.session_id)
        client.logout(login.session_id)

    inst = client.validate_installation("MACHINE-001")
    if inst.authorized:
        print(f"Instalação: {inst.installation_id}")

except LicenseManagerException as e:
    print(f"Erro {e.status_code}: {e.response_body}")

Requisitos

  • Python 3.9+
  • requests >= 2.31.0

Testes

pip install -r requirements-dev.txt
pytest

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

licensemanager_sdk-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

licensemanager_sdk-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file licensemanager_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: licensemanager_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for licensemanager_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2c5ed761dee98b0d4bda1301b76391622cbb9e020a7f1792719d5e6c81f2b104
MD5 c2d4b47e92fd5cdcc741c5d5784cb16f
BLAKE2b-256 d65e73828d196ff8b193ad5979fbe0ecd380d104d7e1328fcd7912ac48a8e7a3

See more details on using hashes here.

File details

Details for the file licensemanager_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for licensemanager_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ed47e05279bf9535146c4098095e70c716ccfff9487a6e1cd033b3a8fd7b9b0
MD5 94f5bb5529750885b9a8d1d73ab52168
BLAKE2b-256 5abd917edc05334e69e0884f13f3ff21784170d78e1728ebbe2726538ab3f6b5

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