The defaults.py module#

Summary#

DEFAULT_HOST

Default for the HOST name.

DEFAULT_PORT

Default for the HOST port.

MAX_MESSAGE_LENGTH

Default for the gRPC maximum message length.

GEOMETRY_SERVICE_DOCKER_IMAGE

Default for the Geometry service Docker image location.

DEFAULT_PIM_CONFIG

Default for the PIM configuration when running PIM Light.

Description#

Module providing default connection parameters.

Module detail#

defaults.DEFAULT_HOST#

Default for the HOST name.

By default, PyAnsys Geometry searches for the environment variable ANSRV_GEO_HOST, and if this variable does not exist, PyAnsys Geometry uses 127.0.0.1 as the host.

defaults.DEFAULT_PORT: int#

Default for the HOST port.

By default, PyAnsys Geometry searches for the environment variable ANSRV_GEO_PORT, and if this variable does not exist, PyAnsys Geometry uses 50051 as the port.

defaults.MAX_MESSAGE_LENGTH#

Default for the gRPC maximum message length.

By default, PyAnsys Geometry searches for the environment variable PYGEOMETRY_MAX_MESSAGE_LENGTH, and if this variable does not exist, it uses 256Mb as the maximum message length.

defaults.GEOMETRY_SERVICE_DOCKER_IMAGE = 'ghcr.io/ansys/geometry'#

Default for the Geometry service Docker image location.

Tag is dependent on what OS service is requested.

defaults.DEFAULT_PIM_CONFIG#

Default for the PIM configuration when running PIM Light.

This parameter is only to be used when PIM Light is being run.