ServerContext#

class ansys.dpf.core.server_context.ServerContext(context_type=LicensingContextType.premium, xml_path='')#

The context defines whether DPF capabilities requiring a license checkout are allowed.

xml_path argument won’t be taken into account if using LicensingContextType.entry.

Parameters:
  • context_type (LicensingContextType) – Type of context.

  • xml_path (str, optional) – Path to the xml to load.

Overview#

licensing_context_type

Whether capabilities requiring Licenses checkout should be allowed.

xml_path

Path to the xml listing the capabilities to load on the server.

__str__

Return string representation of the ServerContext instance.

__eq__

Compare two ServerContext instances for equality.

__ne__

Check that two server contexts are not equal.

Import detail#

from ansys.dpf.core.server_context import ServerContext

Property detail#

property ServerContext.licensing_context_type#

Whether capabilities requiring Licenses checkout should be allowed.

Return type:

LicensingContextType

property ServerContext.xml_path#

Path to the xml listing the capabilities to load on the server.

Return type:

str

Method detail#

ServerContext.__str__()#

Return string representation of the ServerContext instance.

ServerContext.__eq__(other)#

Compare two ServerContext instances for equality.

ServerContext.__ne__(other)#

Check that two server contexts are not equal.