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!")
    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.1.tar.gz (11.1 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.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for license_api_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e6e3473b817838cc494be063b27121dfc0f932e958a79db30c87f1168158d9cf
MD5 38c23fdffa28d8da7f4f9ac0ba679e84
BLAKE2b-256 6ee9e7b389b70603e9701d3dea1c3fa869180f1805a85da8767abac5b56e25ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for license_api_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ded85d5738fa4dca6f0162c2201e4fba13c6acd9dc6650d540c2361e9069413
MD5 c3f3b90d31392c5e64aca9d48b95ec26
BLAKE2b-256 09d6860d03a16ac8fa0afd15208d158f96d1d7d6c9717452503b586bce2f7156

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