GitPedia
Cryptolens

Cryptolens/cryptolens-python

Cryptolens Client API for Python

30 Releases
Latest: 4w ago
v_54: Add new analytics methodsv_54Latest
artemlosartemlos·4w ago·May 29, 2026
GitHub

See #77 for more information.

v_53: Fix load_from_file for future versions of Pythonv_53
artemlosartemlos·10mo ago·August 6, 2025
GitHub

load_from_file used `datetime.datetime.utcnow()` in the logic that checked if the license file was too old. This was replaces with ` datetime.datetime.now(dateime.timezone.utc)` to ensure it continues to work in future versions of Python.

v_52: Fix proxy_experimental + setup.py formatv_52
artemlosartemlos·10mo ago·August 5, 2025
GitHub

This release solves #75 and #76. Thanks to @frilox042, @TimothyVermeirenBiztory

v_51: Add FriendlyName parameter to Create Trial Key methodv_51
artemlosartemlos·1y ago·December 17, 2024
GitHub
v_50: Fix fallback to registry in GetMachineCode for Windowsv_50
artemlosartemlos·1y ago·September 30, 2024
GitHub

This update affects Windows users who are using GetMachineCode method. This update fixes the fallback code that uses the UUID obtained from the registry that is used to generate the machine code.

v_49: Add User class for user authenticationv_49
artemlosartemlos·1y ago·August 30, 2024
GitHub

Please read more in https://help.cryptolens.io/examples/user-verification.

v_48: Add HasNotExpired and Fix machine code method on Windowsv_48
artemlosartemlos·1y ago·August 15, 2024
GitHub

1. Added a new method to check if a license has expired locally. 2. Fixed GetMachineCode method so that it falls back on MachineGUID when WMIC does not work (Windows only). 3. Update setup.py that could solve issues installing the library in newer versions of Python and other platforms. #69 #71

v_47: Add missing "name" parameter in IncrementIntValue and DecrementIntValue methodsv_47
artemlosartemlos·1y ago·July 11, 2024
GitHub

The missing `name` parameter was added to Data.increment_int_value_to_key and Data.decrement_int_value_to_key methods. This would allow you locate a data object based on its name instead of using the Id (object_id in Python).

v_46: Add more return fields to GetKeys methodv_46
artemlosartemlos·2y ago·May 7, 2024
GitHub

The fields added include "pageCount", "total" and "returned". These are accessible via the third list item of the result.

v_45: Add GetCustomerLicenses and GetCustomerLicensesBySecretv_45
artemlosartemlos·2y ago·April 24, 2024
GitHub

Adding methods to retrieve customer licenses. Please check out the following article on how to use the second method: https://help.cryptolens.io/web-interface/customer-secret

v_44: Add "AddFeature" and "RemoveFeature" methods in Key classv_44
artemlosartemlos·2y ago·March 19, 2024
GitHub

This update introduces two new methods, "AddFeature" and "RemoveFeature", that allow you to change the state of the 8 built in feature flags.

v_43: Add new API methods to the Key classv_43
artemlosartemlos·2y ago·February 19, 2024
GitHub

In this release, MachineLockLimit, ChangeNotes, ChangeReseller and CreateKeyFromTemplate were added to the Key class.

v_42: Add metadata property in Key.Activatev_42
artemlosartemlos·2y ago·February 7, 2024
GitHub

In this release, we added support for the metadata field that can be returned by Key.Activate. When `metadata=true` in the Key.Activate call, it will return an array of three elements instead of two, where the third element is the value of the additional metadata for a specific license.

v_41: Add an error if period exceeds the limitv_41
artemlosartemlos·2y ago·September 14, 2023
GitHub

This release adds a new error message to Key.activate that will be thrown if the period exceeds the permitted limit in Python. The problem is described in https://github.com/Cryptolens/cryptolens-python/tree/master#the-expiration-date-cannot-be-converted-to-a-datetime-object-please-try-setting-the-period-to-a-lower-value, but in essence, the issue is that the timestamp representation of the expiration date causes an overflow in Python, and thus an error is thrown.

v_40: Improvements to the signature verification methodv_40
artemlosartemlos·3y ago·June 14, 2023
GitHub
v_39: Add GetKeys method and fix cmd window from showing up when computing machine codev_39
artemlosartemlos·3y ago·February 8, 2023
GitHub
v_38: Add Decrement Int Value to Keyv_38
artemlosartemlos·3y ago·December 16, 2022
GitHub
v_37: Fix an issue in HasFeature methodv_37
artemlosartemlos·3y ago·September 19, 2022
GitHub

In this update we fixed an issue that could occur if a license did not have the data object required for [feature templates](https://help.cryptolens.io/web-interface/feature-templates) or if the content of it was empty.

v_36: Support for proxy serversv_36
artemlosartemlos·3y ago·July 28, 2022
GitHub

In this release, we have added support for proxy servers defined on OS level. To enable it, you can add the following command before calling any other API method such as Key.activate. ```python HelperMethods.proxy_experimental = True ```

v_35: Update return value in GetMachineCode upon errorv_35
artemlosartemlos·3y ago·June 29, 2022
GitHub

This updates changes the behaviour of Helpers.GetMachineCode when the library is unable to retrieve the UUID. If this occurs, None will be returned.

v_34: Update UUID source for Windowsv_34
artemlosartemlos·4y ago·April 22, 2022
GitHub

When the machine code, we rely on the UUID that is provided by the OS. On Windows, we used to use wmic to obtain the UUID. As pointed out by @pmnforce in #50, it will be deprecated in Windows 11. We are thus switching to a different method to compute it, i.e., as follows: ``` cmd /c powershell.exe -Command "(Get-CimInstance -Class Win32_ComputerSystemProduct).UUID" ``` Based on our tests, this will not affect the value of the machine code, i.e., this update is backwards compatible.

v_33: Update the API endpointv_33
artemlosartemlos·4y ago·March 22, 2022
GitHub

The base address of the API was changed from app.cryptolens.io to api.cryptolens.io. Note: for corporate clients or those with strict firewall rules, please notify them to whitelist the IPs on the following page: https://help.cryptolens.io/security/api-ip[](https://github.com/)

v_32: Event registration and data object methodsv_32
artemlosartemlos·4y ago·November 2, 2021
GitHub

📋 Changes

  • get_events
  • register_event
  • add_data_object_to_key
  • remove_data_object_to_key
  • add_data_object_to_machine
  • remove_data_object_to_machine
  • list_machine_data_objects
  • list_key_data_objects
v_31: Add support for feature templates v_31
artemlosartemlos·5y ago·March 26, 2021
GitHub

📋 Changes

  • It's now possible to verify additional features (beyond the 8 default features) and define feature hierarchies. You can read more about it here: https://help.cryptolens.io/web-interface/feature-templates
v_30: Update CreateKey to support automatic customer creationv_30
artemlosartemlos·5y ago·January 5, 2021
GitHub
v_29: Add unblock key methodv_29
artemlosartemlos·5y ago·January 4, 2021
GitHub
v_28: Update Helpers.IsOnRightMachine to be compatible with ModelVersion 3v_28
artemlosartemlos·5y ago·November 30, 2020
GitHub
v_27: New methods in Key class, updated behaviour of activated machines, Payment Form methodsv_27
artemlosartemlos·5y ago·November 30, 2020
GitHub

The major change is the introduction of the latest model used in Key.activate and Key.get_key. You can read more about it [here](https://app.cryptolens.io/docs/api/v3/Activate?modelVersion=3). Below is an excerpt from the Web API Docs about ModelVersion 3: > This model has a few changes. First, we have added a Reseller object to the LicenseKey. Secondly, we have made sure that all node-locked and floating licenses are returned (unless field masking is used). We added FloatingExpires to ActivatedMachines so that you can check when the activation was set to expire (note, this value can be overridden when calling this method with a different FloatingTimeInterval).

v_26: Fix a typo that would give an error when calling the Web APIv_26
artemlosartemlos·5y ago·September 25, 2020
GitHub

Thanks to @copterspace

v_25: Update the name of verify_SSL parameterv_25
artemlosartemlos·5y ago·September 24, 2020
GitHub