Skip to main content
Choose the reference for the version of Python you use. For installation and a first example, see the Python guide.

Python 3

Python 3 package licensing 0.54. Reviewed source revision.
  • Key — Activate, retrieve, create and update license keys.
  • AI — Read usage analytics and Web API logs, and record application events.
  • Message — Read, create and remove update messages.
  • Product — List products and search their license keys.
  • Customer — Create customers and retrieve their associated licenses.
  • Data — Read and update data objects attached to licenses or activations.
  • PaymentForm — Create payment-form sessions from your server.
  • Helpers — Compute machine codes and check individual license properties.
  • Subscription — Record metered usage for customer subscriptions.
  • User — Manage customer usernames, passwords and license associations.
  • ActivatedMachine — The activation details returned on a license.
  • Reseller — The reseller details returned on a license.
  • LicenseKey — The parsed license object, including saving and loading signed responses.
  • Response — The response envelope before its license data has been verified and parsed.
  • RSAPublicKey — The XML RSA public key used to check license signatures.
  • Settings

Python 2 / IronPython

Python 2 / IronPython implementation. Reviewed source revision.
  • Key — Activate, retrieve and release licenses, and create trial keys.
  • Helpers — Compute machine codes and compare activation identifiers.
  • ActivatedMachine — The activation details returned on a license.
  • LicenseKey — The parsed license object, including saving and loading signed responses.
  • Response — The response envelope before its license data has been verified and parsed.
  • RSAPublicKey — The XML RSA public key used to check license signatures.
  • Settings

FAQ

Use Python 3 when you install licensing with pip. Use Python 2 / IronPython when you copy cryptolens_python2.py into an older application. Their available methods and parameters differ; the legacy implementation is not a copy of every Python 3 feature.
No. These pages list the methods this SDK exposes. If a Web API method has no Python wrapper, use its documented HTTP endpoint. For example, retrieving an existing customer secret requires GetCustomers; the Python SDK has no Customer.get_customers method.
Key.activate and Key.get_key verify the returned license signature. Your application still decides whether the license permits the requested work. See the license-check FAQ for product, feature, expiry, blocking and machine checks.
These links keep bookmarks to the earlier reference working. Low-level request and cryptography helpers are implementation details. Use the documented settings or the public methods below.