Skip to main content

Client and manager helpers for CyberLicensing

Project description

CyberLicensing Python SDK

Utilities for integrating with the CyberLicensing service.

Installation

For now, install directly from the project root:

pip install -r requirements.txt
pip install -e sdk

(Once published to PyPI, replace with pip install cyberlicensing.)

Client-side usage

from cyberlicensing import LicenseClient

client = LicenseClient(base_url="https://licensing.showdown.boo")
result = client.validate_with_environment("LICENSE-KEY-1234")
print(result)

validate_with_environment automatically gathers HWID/IP metadata. Use validate_license if you want to provide your own context.

Manager-side usage

from cyberlicensing import ManagerClient

manager = ManagerClient(base_url="https://licensing.showdown.boo")
manager.authenticate("admin", "password")
projects = manager.list_projects()
project_id = projects[0]["id"]
license_data = manager.create_license(project_id, days_valid=30, metadata={"plan": "pro"})

Additional helpers:

  • update_metadata_schema(project_id, fields) – define metadata template (with client_editable flags)
  • extend_license(project_id, license_id, days) – convenience method to push expiration forward
  • delete_license(license_id) – revoke a key entirely

Environment helpers

from cyberlicensing import collect_environment_metadata

print(collect_environment_metadata())

Returns HWID, hostname, LAN IP, and (if available) public IP.

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

cyberlicensing-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

cyberlicensing-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file cyberlicensing-0.1.0.tar.gz.

File metadata

  • Download URL: cyberlicensing-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for cyberlicensing-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e5f555b7cbf6d449ed61b255d112fc6888081b5690958ff847261b2f4ddbaef2
MD5 6fb087d09abcb87d8e04abf7cc529946
BLAKE2b-256 0e2b1a99e0df8f5b3892bfb681d39024a1e76c71955cf5520a59888d8bdddaae

See more details on using hashes here.

File details

Details for the file cyberlicensing-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cyberlicensing-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for cyberlicensing-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4db662cea556ba63c4dde0f41530ce3c1b767a65590a720b2332dc430ba0341e
MD5 ea561dffdcb1f9a70a9d37ddd4b99e11
BLAKE2b-256 27a706e3ceb23ad851c5f998d44830414abf0da5975cefe9a4900e5b379a80d9

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