# DServer

```{eval-rst}
.. currentmodule:: tango
```

DServer based on the {class}`~tango.LatestDeviceImpl` class, but has additional methods.

The only time you can access an instance of this class is **within a running device server process**.

Below is an example of the usage:

```
import tango

util = tango.Util.instance()
dserver = util.get_dserver_device()

print(f"{dserver.query_class()=}")
print(f"{dserver.query_device()=}")
```

:::{warning}
The get and query methods are safe to use,
but the rest will significantly affect the behaviour of your Tango devices,
so use with caution.
:::

```{eval-rst}
.. autoclass:: tango.DServer
    :members:
```
