schrodinger.utils.license module

Contains a class License that allows easy licensing of Python scripts

It is a violation of your software license agreement to modify the code in this module in any way.

Copyright Schrodinger, LLC. All rights reserved.

class schrodinger.utils.license.License(license_type, num_tokens=1, version=None, force=False)

Bases: object

Class to allow easy licensing of Python scripts

It is a violation of your software license to modify this class in any way.

checkin()

Return the license token. After calling this method, the License object will report itself as invalid.

isValid()

Check if the license is currently valid

schrodinger.utils.license.is_license_available(license_type)
schrodinger.utils.license.is_opls2_available()

Returns TRUE if opls2 is available