Skip to main content

License API connector for Python

Project description

license-api-py

Installation

pip install license-api-py

Code example

import asyncio
from license_api_py import LicenseAPI

api = LicenseAPI("http://localhost:8080")

user = {
    "username": "bluniparker",
    "password": "your-password",
    "hwid": "your-hwid"
}

async def main():
    if (await api.login(user)):
        print("Logged in successfully!")
        await api.connect_to_websocket()
    else:
        print("Failed to login.")

if __name__ == "__main__":
    asyncio.run(main())

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

license_api_py-0.1.3.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

license_api_py-0.1.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file license_api_py-0.1.3.tar.gz.

File metadata

  • Download URL: license_api_py-0.1.3.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.0

File hashes

Hashes for license_api_py-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3d26172a5b827f6917bcb404dccdd93622a4a4fe43b143e352a9fb15bc2a15b6
MD5 b8307f87451d403a6ad49d4cda7169d9
BLAKE2b-256 e46caaf8d24ea50470bf0ffeecb31c0422e503260c86f2cbd71e135d80f1cb82

See more details on using hashes here.

File details

Details for the file license_api_py-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for license_api_py-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5064c93f54c0c0515ccf0f549bb48c2da8beeb750a7e31dae1f87f1f92dbc230
MD5 ba0b30e1f2da5ada6d5c9a8256964c77
BLAKE2b-256 b9860383793f0302bcdc4dac00cb9a0a32cb87da9d445f86523a416e65d286a0

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