Skip to content

Releases: Cryptolens/cryptolens-python

v_23: Add CreateKey, AddCustomer and GetProducts

19 Aug 12:34

Choose a tag to compare

v_22: Add GetMessages and update GetWebAPILog

14 Jul 15:20
15a05ba

Choose a tag to compare

We have added a way to retrieve messages broadcasted using the Messaging API. Get Web API Log was also updated to so that the first argument is either a list of logs or None (instead of False, which was previously the case).

v_21: Fix missing parameter OrderBy in GetWebAPILog

07 Jun 13:28

Choose a tag to compare

Fix missing parameter in Get Web API log

v_20: Fix error handling

07 Jun 12:58

Choose a tag to compare

Fix error handling in Python 2 and 3

v_19: Add Get Web API Log method

07 Jun 12:32
5374ca3

Choose a tag to compare

Add GetWebAPILog method (#22)

* Update methods.py

* Update setup.py

v_18: Catch an if no internet connection is present

04 Jun 16:18

Choose a tag to compare

v_17: Add FriendlyName support

02 Jun 15:36

Choose a tag to compare

We have updated both Python 2 and 3 libraries so that a friendly_name can be registered during activation. To get the same value as Environment.MachineName?, you can set the friendly name to socket.gethostname(). Below is an example of how to set it when calling Key.activate:

from licensing.models import *
from licensing.methods import Key, Helpers

import socket

res = Key.activate(token="WyIyNzMyIiwiYmx6NlJ6ZzdaWjFScmxFVFNCc283YTJyUG5kQURMZ0hucW1YdUZxKyJd",\
                   rsa_pub_key=pubKey,\
                   product_id=3349, key="ICVLD-VVSZR-ZTICT-YKGXL", machine_code=Helpers.GetMachineCode(),\
                   friendly_name=socket.gethostname())

Note: if the device was already activated once, the friendly name will not get updated. However, Web API Log will still contain a record of the friendly name.

v_16: Show more detailed error messages

01 Jun 19:57

Choose a tag to compare

We have updated the Python 2 and Python 3 client libraries so that they show more detailed error messages.

For more information about common errors and how to fix them, please check out the following article: https://help.cryptolens.io/faq/index#troubleshooting-api-errors

v_15: Generate the same machine code as in the .NET Client

01 Apr 11:08
6be2906

Choose a tag to compare

If you call Helpers.GetMachineCode(v=2) in the Python library, it will return the same machine code (assuming it's on the same machine) as Helpers.GetMachineCodePI(v: 2) in .NET (on Windows). In a future release, we plan to have an option to get a machine code that is the same across all OS.

Thanks to @pmnforce

v_14: Add GetKey method

19 Dec 13:40

Choose a tag to compare

Add GetKey to python2, closes #18