> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ensight_grpc.EnSightGRPC Class Reference

Part of [EnSight gRPC Interface](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/group__grpc) » [ensight\_grpc](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/group__ensight__grpc.md)

Python binding for the EnSight client gRPC API.

Inheritance diagram for ensight\_grpc.EnSightGRPC:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/ensight/ensight-apis/2025-r2/classensight__grpc_1_1_en_sight_g_r_p_c.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=81d17e8f175967c4bade59155a33f0d4)

## Public Member Functions

| Type | Name |
| - | - |
| | [\_\_init\_\_](#a8d059169e231ebc10a0467ee2ba5fec2) (self, [port](#a5f70502660ffb9346fe54f087bebaa31)=12345, [host](#a81fd18bb67b4f81fb1cab9b5d6ecee99)='127.0.0.1', version='') create an instance of the EnSight gRPC interface wrapper |
| | [host](#a81fd18bb67b4f81fb1cab9b5d6ecee99) (self) get the hostname for this connection |
| | [port](#a5f70502660ffb9346fe54f087bebaa31) (self) get the port number for this connection |
| | [set\_security\_token](#a0cd63b73616a71f1f628fec85485f6ee) (self, n) set the security token for the gRPC connection. |
| | [security\_token](#a80081863c31f5d1e9924c110506122ab) (self) return the security token for the gRPC connection. |
| | [shutdown](#aa197d33f6ae11c27024ace93f875cf2b) (self) shut down all gRPC connections |
| | [start\_server](#ae8bda9000df12ffa158c3b99a2bb25c2) (self) Start an EnSight gRPC server instance. |
| | [stop\_server](#a7aab74443c5c3f7833ff8934c8341167) (self) shut down any gPRC connection made by this class |
| | [is\_connected](#aeedd915d0824e94193e8ce5af0fd02ff) (self) check if a gRPC connection has been established |
| | [connect](#a4f2fc7d6c856d4dcf6f2e3e231363798) (self, timeout=15.0) establish a connection to an EnSight gRPC server |
| | [render](#a0586cf3dc58ad8dcb132ac786ff82e19) (self, width=640, height=480, aa=1, raw=False, highlighting=False) render the current EnSight screen and return the image |
| | [geometry](#a9546b51614d2d88cabeaba4551218a36) (self) return the current scene geometry in glTF format |
| | [command](#a10bf46c7b7de39dc76a69a8873badbd7) (self, command\_string, do\_eval=True, json=False, raw\_eval=False) send a Python command string to be executed in EnSight |
| | [image\_stream\_enable](#a2edadc71c7d20b1d1e9872a9f7f01ab3) (self, flip\_vertical=False) enable a simple gRPC-based image stream from EnSight |
| | [get\_image](#a5a0f0f154bd96f67e0edadcbb58a3a2e) (self) retrieve the current EnSight image |
| | [image\_stream\_is\_enabled](#a379795a64f880d99d2431a2630b563b6) (self) check to see if the image stream is enabled |
| | [prefix](#a5d3b64348df49096a0dbde149139f879) (self) return the unique prefix for this instance |
| | [event\_stream\_enable](#a7dc80e5f8aa8725d5c6fa7e3f1a59d31) (self, callback=None, [prefix](#a5d3b64348df49096a0dbde149139f879)=None) enable a simple gRPC-based event stream from EnSight |
| | [dynamic\_scene\_graph\_stream](#ab9b3a6b2ad658629f634f1edca7f9e52) (self, client\_cmds) open up a dynamic scene graph stream |
| | [event\_stream\_is\_enabled](#a28a17851622d8b1bec1761e7cec3f72b) (self) check to see if the event stream is enabled |
| | [get\_event](#abeb5e016abf00b41863f0d1504998302) (self) retrieve and remove the oldest ensightservice::EventReply string |
| | [subscribe\_events](#a7b5e49fae332121d1e04d76d45a67137) (self) subscribe to an event stream using a locally launched gRPC server |
| | [subscribe\_images](#ab85ca09445ac36ea1cfbd599c8809941) (self, flip\_vertical=False, use\_shmem=True) subscribe to an image stream |
| | [unsubscribe](#a0445321eb920fd2e62a055a11d378d08) (self) unsubscribe from any image or event streams that have been subscribed to |

## Public Attributes

| Type | Name |
| - | - |
| bool | [\_image\_thread](#a660df97b19f908d161ac673c582465e1) = True |
| int | [\_image](#a15288e6ad79606e879dae75e97e4b152) = 1 |
| bool | [\_event\_thread](#adb6212d9d177108c32bfefa60fd16b88) = True |

## Protected Attributes

| Type | Name |
| - | - |
| | [\_host](#acfa730cfcb568cc26f079996804ebb97) = [host](#a81fd18bb67b4f81fb1cab9b5d6ecee99) |
| | [\_port](#a3288be89c9ab636283cb59df9fe0dc17) = [port](#a5f70502660ffb9346fe54f087bebaa31) |
| | [\_pid](#abba6d94b9acc418d610e900aecbfd23c) = None |
| | [\_channel](#abb7212c7e4ad9e7ef398bf5e13f15fb8) = None |
| | [\_stub](#a8d6e08882d55ce3c7fbd837bedfc0d98) = None |
| | [\_dsg\_stub](#a44561d8bec5adfc5fe51978b5f4dd6fb) = None |
| | [\_version](#a4ed120bd2b7a2a477bf0c19dc1765fce) = version |
| | [\_security\_token](#aec4f4d61de4dfe799e620a005945a016) = str(random.randint(0, 1000000)) |
| | [\_image\_stream](#aefa2e7fffb9d88723e08ca8a17b56b62) = None |
| | [\_image\_thread](#a660df97b19f908d161ac673c582465e1) = None |
| | [\_image](#a6e8208612ce6492e8702f0fcdfe32901) = None |
| int | [\_image\_number](#a318cc014659eca5cb27f7ca79bda0fe9) = 0 |
| | [\_shmem\_client](#a7cc44f4eb01c9bfe14a17d01dc8d8d36) = None |
| | [\_shmem\_filename](#afb65fb2ac55da0dfc23022eb188656fc) = None |
| | [\_event\_stream](#ade63e1260b8690a73b72f2d65b561096) = None |
| | [\_event\_thread](#a98f82222b0e4dcbf23f28ed20168a94e) = None |
| | [\_events](#ac385f5b18232bcec204b028221602427) = list() |
| str | [\_prefix](#a3315104c5127852b071df26be56ed10e) = None |
| | [\_sub\_service](#aa94401a916262c38e1173cca04c9390c) = None |
| | [\_event\_callback](#a54868c3a59ac189e258285885a48f65e) = None |

## Detailed Description

Python binding for the EnSight client gRPC API.

This class provides an asynchronous interface to the EnSight core gRPC interface. It can handle remote image and event streams, providing a much simpler interface to the EnSight application

Definition at line [35](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

## Constructor & Destructor Documentation

### \_\_init\_\_()

```cpp theme={null}
ensight_grpc.EnSightGRPC.__init__(
    self,
    port = 12345,
    host = '127.0.0.1',
    version = ''
)
```

create an instance of the EnSight gRPC interface wrapper

The default is to make a connection to an EnSight gRPC server on port 12345 on the loopback host. If requested to launch the server, it will be the current version.

**Parameters**

| Name | Description |
| - | - |
| port | The port number of the EnSight gRPC server |
| host | The hostname of the EnSight gRPC server |
| version | A specific EnSight version number to run (e.g. '222' for 2022R2) |

Definition at line [45](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

## Member Function Documentation

### command()

```cpp theme={null}
ensight_grpc.EnSightGRPC.command(
    self,
    command_string,
    do_eval = True,
    json = False,
    raw_eval = False
)
```

send a Python command string to be executed in EnSight

The string will be run or evaluated in the EnSight Python interpreter via the EnSightService::RunPython() gRPC all. If an exception or other error occurs, this function will throw a RuntimeError. If do\_eval is False, the return value will be None, otherwise it will be the result of eval() of the string.

**Parameters**

| Name | Description |
| - | - |
| command\_string | the string to be executed |
| do\_eval | if True, the string will be run via "eval()" and the results returned |
| json | If true, the value returned with do\_eval() will be encoded via json, otherwise it will be a Python object |

Definition at line [254](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### connect()

```cpp theme={null}
ensight_grpc.EnSightGRPC.connect(
    self,
    timeout = 15.0
)
```

establish a connection to an EnSight gRPC server

Attempt to connect to an EnSight gRPC server using the host and port established by the constructor. Note on failure, this function just returns, but [is\_connected()](#aeedd915d0824e94193e8ce5af0fd02ff) will return False.

**Parameters**

| Name | Description |
| - | - |
| timeout | how long to wait for the connection to timeout. |

Definition at line [177](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### dynamic\_scene\_graph\_stream()

```cpp theme={null}
ensight_grpc.EnSightGRPC.dynamic_scene_graph_stream(
    self,
    client_cmds
)
```

open up a dynamic scene graph stream

Make a DynamicSceneGraphService::GetSceneStream() rpc call and return a ensightservice::SceneUpdateCommand stream instance.

**Parameters**

| Name | Description |
| - | - |
| client\_cmds | an iterator that produces ensightservice::SceneClientCommand objects |

**Returns**

a ensightservice::SceneUpdateCommand stream instance

Definition at line [396](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### event\_stream\_enable()

```cpp theme={null}
ensight_grpc.EnSightGRPC.event_stream_enable(
    self,
    callback = None,
    prefix = None
)
```

enable a simple gRPC-based event stream from EnSight

This method makes a EnSightService::GetEventStream() gRPC call into EnSight, returning an ensightservice::EventReply stream. The method creates a thread to hold this stream open and read new events from it. The thread adds the event strings to a list of events stored on this instance. If callback is not None, the object will be called with the event string, otherwise they can be retrieved using [get\_event()](#abeb5e016abf00b41863f0d1504998302).

Definition at line [376](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### event\_stream\_is\_enabled()

```cpp theme={null}
ensight_grpc.EnSightGRPC.event_stream_is_enabled(self)
```

check to see if the event stream is enabled

If an event stream has been successfully established via [event\_stream\_enable()](#a7dc80e5f8aa8725d5c6fa7e3f1a59d31), then this function returns True

**Returns**

True if a ensightservice::EventReply steam is active

Definition at line [405](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### geometry()

```cpp theme={null}
ensight_grpc.EnSightGRPC.geometry(self)
```

return the current scene geometry in glTF format

Package up the geometry currently being viewed in the EnSight session as a glTF stream. Return this stream as an array of byte. Note: no interrmediate files are utilized.

Definition at line [235](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### get\_event()

```cpp theme={null}
ensight_grpc.EnSightGRPC.get_event(self)
```

retrieve and remove the oldest ensightservice::EventReply string

When any of the event streaming systems is enabled, Python threads will receive the event records and store them in this instance in an ordered fashion. This method retrieves the oldest ensightservice::EventReply string in the queue.

**Returns**

the even string or None if no events are available

Definition at line [415](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### get\_image()

```cpp theme={null}
ensight_grpc.EnSightGRPC.get_image(self)
```

retrieve the current EnSight image

When any of the image streaming systems is enabled, Python threads will receive the most recent image and store them in this instance. The frame stored in this instance can be accessed by calling this method

**Returns**

the image dict(pixels=bytearray, width=w, height=h) and the image frame number

Definition at line [302](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### host()

```cpp theme={null}
ensight_grpc.EnSightGRPC.host(self)
```

get the hostname for this connection

Returns the current connection hostname.

Definition at line [74](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### image\_stream\_enable()

```cpp theme={null}
ensight_grpc.EnSightGRPC.image_stream_enable(
    self,
    flip_vertical = False
)
```

enable a simple gRPC-based image stream from EnSight

This method makes a EnSightService::GetImageStream() gRPC call into EnSight, returning an ensightservice::ImageReply stream. The method creates a thread to hold this stream open and read new image frames from it. The thread places the read images in this object. An external application can retrieve the most recent one using [get\_image()](#a5a0f0f154bd96f67e0edadcbb58a3a2e).

**Parameters**

| Name | Description |
| - | - |
| flip\_vertical | If True, the image will be flipped over the X axis before being sent from EnSight. |

Definition at line [284](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### image\_stream\_is\_enabled()

```cpp theme={null}
ensight_grpc.EnSightGRPC.image_stream_is_enabled(self)
```

check to see if the image stream is enabled

If an image stream has been successfully established via [image\_stream\_enable()](#a2edadc71c7d20b1d1e9872a9f7f01ab3), then this function returns True

**Returns**

True if a ensightservice::ImageReply steam is active

Definition at line [354](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### is\_connected()

```cpp theme={null}
ensight_grpc.EnSightGRPC.is_connected(self)
```

check if a gRPC connection has been established

Returns True if a previous [connect()](#a4f2fc7d6c856d4dcf6f2e3e231363798) call made a valid gRPC connection.

Definition at line [168](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### port()

```cpp theme={null}
ensight_grpc.EnSightGRPC.port(self)
```

get the port number for this connection

Returns the current connection port number.

Definition at line [80](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### prefix()

```cpp theme={null}
ensight_grpc.EnSightGRPC.prefix(self)
```

return the unique prefix for this instance

Many of the EnSight gRPC APIs require a unique prefix so that EnSight can handle multiple, simultaneous remote connections. This method will generate a GUID-based prefix.

**Returns**

A unique prefix string of the form: grpc://\{uuid}/

Definition at line [363](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### render()

```cpp theme={null}
ensight_grpc.EnSightGRPC.render(
    self,
    width = 640,
    height = 480,
    aa = 1,
    raw = False,
    highlighting = False
)
```

render the current EnSight screen and return the image

Render the current scene at some resolution independent of the current EnSight scene view.

**Parameters**

| Name | Description |
| - | - |
| width | width in pixels |
| height | height in pixels |
| aa | number of anti-aliasing passes |
| raw | If True, the returned array will be width\*height\*3 bytes in size. If False, it will be a byte array in PNG format. |
| highlighting | If True, the current dynamic selection/highlighting will be in the image |

Definition at line [215](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### security\_token()

```cpp theme={null}
ensight_grpc.EnSightGRPC.security_token(self)
```

return the security token for the gRPC connection.

Returns the current connection security token

Definition at line [98](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### set\_security\_token()

```cpp theme={null}
ensight_grpc.EnSightGRPC.set_security_token(
    self,
    n
)
```

set the security token for the gRPC connection.

EnSight supports a security token in either numeric (-security \{int}) or string (ENSIGHT\_SECURITY\_TOKEN environmental variable) form. If EnSight is using a security token, all gRPC calls must include this token. This call sets the token for all rGPC calls made by this class. Note: for this module, the security token must be a in bytes() format. For example: str(1000).encode("utf-8")

**Parameters**

| Name | Description |
| - | - |
| n | an string to be used as the security token |

Definition at line [92](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### shutdown()

```cpp theme={null}
ensight_grpc.EnSightGRPC.shutdown(self)
```

shut down all gRPC connections

If this class launched the EnSight client instance, it will send the gRPC exit() call and then shut down all connections.

Definition at line [105](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### start\_server()

```cpp theme={null}
ensight_grpc.EnSightGRPC.start_server(self)
```

Start an EnSight gRPC server instance.

If the host application wishes to launch an EnSight instance, [start\_server()](#ae8bda9000df12ffa158c3b99a2bb25c2) will launch a batch mode EnSight application with the security token and a gRPC server started on the port passed in the constructor.

Definition at line [128](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### stop\_server()

```cpp theme={null}
ensight_grpc.EnSightGRPC.stop_server(self)
```

shut down any gPRC connection made by this class

First, if this class launched the EnSight instance, via [start\_server()](#ae8bda9000df12ffa158c3b99a2bb25c2), the exit() gRPC command will be sent. Second, the local gRPC connection is dropped.

Definition at line [153](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### subscribe\_events()

```cpp theme={null}
ensight_grpc.EnSightGRPC.subscribe_events(self)
```

subscribe to an event stream using a locally launched gRPC server

This methond makes a EnSightService::SubscribeEvents() gRPC call, causing EnSight to make a reverse gRPC connection over with gRPC calls with the various events will be made.

Definition at line [471](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### subscribe\_images()

```cpp theme={null}
ensight_grpc.EnSightGRPC.subscribe_images(
    self,
    flip_vertical = False,
    use_shmem = True
)
```

subscribe to an image stream

This methond makes a EnSightService::SubscribeImages() gRPC call. If use\_shmem is False, the transport system will be made over gRPC. It causes EnSight to make a reverse gRPC connection over with gRPC calls with the various images will be made. If use\_shmem is True (the default), the [EnSight gRPC Shared Memory Image Transport API](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/group__shmem.md) will be used.

**Parameters**

| Name | Description |
| - | - |
| flip\_vertical | If True, the image pixels will be flipped over the X axis |
| use\_shmem | If True, use the shared memory transport, otherwise use reverse gRPC |

Definition at line [488](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### unsubscribe()

```cpp theme={null}
ensight_grpc.EnSightGRPC.unsubscribe(self)
```

unsubscribe from any image or event streams that have been subscribed to

This method makes a EnSightService::Unsubscribe() gRPC call. It will cancel any [subscribe\_events()](#a7b5e49fae332121d1e04d76d45a67137) or [subscribe\_images()](#ab85ca09445ac36ea1cfbd599c8809941) calls.

Definition at line [527](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

## Member Data Documentation

### \_channel

```cpp theme={null}
ensight_grpc.EnSightGRPC._channel = None
```

`protected`

Definition at line [49](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_dsg\_stub

```cpp theme={null}
ensight_grpc.EnSightGRPC._dsg_stub = None
```

`protected`

Definition at line [51](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_event\_callback

```cpp theme={null}
ensight_grpc.EnSightGRPC._event_callback = None
```

`protected`

Definition at line [68](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_event\_stream

```cpp theme={null}
ensight_grpc.EnSightGRPC._event_stream = None
```

`protected`

Definition at line [63](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_event\_thread \[1/2]

```cpp theme={null}
ensight_grpc.EnSightGRPC._event_thread = None
```

`protected`

Definition at line [64](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_event\_thread \[2/2]

```cpp theme={null}
bool ensight_grpc.EnSightGRPC._event_thread = True
```

Definition at line [386](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_events

```cpp theme={null}
ensight_grpc.EnSightGRPC._events = list()
```

`protected`

Definition at line [65](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_host

```cpp theme={null}
ensight_grpc.EnSightGRPC._host = host
```

`protected`

Definition at line [46](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_image \[1/2]

```cpp theme={null}
ensight_grpc.EnSightGRPC._image = None
```

`protected`

Definition at line [58](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_image \[2/2]

```cpp theme={null}
int ensight_grpc.EnSightGRPC._image = 1
```

Definition at line [312](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_image\_number

```cpp theme={null}
int ensight_grpc.EnSightGRPC._image_number = 0
```

`protected`

Definition at line [59](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_image\_stream

```cpp theme={null}
ensight_grpc.EnSightGRPC._image_stream = None
```

`protected`

Definition at line [56](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_image\_thread \[1/2]

```cpp theme={null}
bool ensight_grpc.EnSightGRPC._image_thread = None
```

`protected`

Definition at line [57](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_image\_thread \[2/2]

```cpp theme={null}
bool ensight_grpc.EnSightGRPC._image_thread = True
```

Definition at line [291](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_pid

```cpp theme={null}
ensight_grpc.EnSightGRPC._pid = None
```

`protected`

Definition at line [48](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_port

```cpp theme={null}
ensight_grpc.EnSightGRPC._port = port
```

`protected`

Definition at line [47](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_prefix

```cpp theme={null}
str ensight_grpc.EnSightGRPC._prefix = None
```

`protected`

Definition at line [66](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_security\_token

```cpp theme={null}
ensight_grpc.EnSightGRPC._security_token = str(random.randint(0, 1000000))
```

`protected`

Definition at line [53](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_shmem\_client

```cpp theme={null}
ensight_grpc.EnSightGRPC._shmem_client = None
```

`protected`

Definition at line [60](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_shmem\_filename

```cpp theme={null}
ensight_grpc.EnSightGRPC._shmem_filename = None
```

`protected`

Definition at line [61](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_stub

```cpp theme={null}
ensight_grpc.EnSightGRPC._stub = None
```

`protected`

Definition at line [50](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_sub\_service

```cpp theme={null}
ensight_grpc.EnSightGRPC._sub_service = None
```

`protected`

Definition at line [67](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

### \_version

```cpp theme={null}
ensight_grpc.EnSightGRPC._version = version
```

`protected`

Definition at line [52](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md) of file [ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md).

The documentation for this class was generated from the following file:

* D:/ANSYSDev/Product-src/ensight/client/rpc\_interface/[ensight\_grpc.py](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/ensight__grpc_8py_source.md)
