---
title: Charmhub | Deploy Temporal Server using Charmhub - The Open Operator Collection
description: Deploy the latest version of Temporal Server as a Kubernetes Operator
  on any cloud.
url: https://charmhub.io/temporal-k8s/libraries/temporal_host_info
---

# Temporal Server

[Workflows Charmers](https://charmhub.io/publisher/workflows-charmers "View all packages from Workflows Charmers")

* [Workflows Charmers](https://charmhub.io/publisher/workflows-charmers "View all packages from Workflows Charmers")

Platform:

1.23/stable 60

```
juju deploy temporal-k8s --channel 1.23/stable
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

[Toggle side navigation](https://charmhub.io/temporal-k8s/libraries/temporal_host_info#drawer)

## charms.temporal\_k8s.v0.temporal\_host\_info

* [*Docstrings*Docstrings](https://charmhub.io/temporal-k8s/libraries/temporal_host_info)
  [*Code*Source code](https://charmhub.io/temporal-k8s/libraries/temporal_host_info/source-code)
* + Download

    Fetch library

    ```
    charmcraft fetch-lib charms.temporal_k8s.v0.temporal_host_info
    ```

    [Download temporal\_host\_info.py](https://charmhub.io/temporal-k8s/libraries/temporal_host_info/download)
  + *Last updated* 16 Apr 2026
  + *Revision* Library version 0.1

Charm library for the temporal-host-info relation interface.

This library provides the TemporalHostInfoProvider and TemporalHostInfoRequirer
classes for charms that need to share Temporal server connection details
(host and port) over a Juju relation.

---

Index

* [class TemporalHostInfoProvider](https://charmhub.io/temporal-k8s/libraries/temporal_host_info#temporalhostinfoprovider)
* + [def \_\_init\_\_(
    self,
    charm,
    port)](https://charmhub.io/temporal-k8s/libraries/temporal_host_info#temporalhostinfoprovider-__init__)
* [class TemporalHostInfoChangedEvent](https://charmhub.io/temporal-k8s/libraries/temporal_host_info#temporalhostinfochangedevent)
* + [def \_\_init\_\_(
    self,
    handle,
    host,
    port)](https://charmhub.io/temporal-k8s/libraries/temporal_host_info#temporalhostinfochangedevent-__init__)
* + [def snapshot(
    self)](https://charmhub.io/temporal-k8s/libraries/temporal_host_info#temporalhostinfochangedevent-snapshot)
* + [def restore(
    self,
    snapshot)](https://charmhub.io/temporal-k8s/libraries/temporal_host_info#temporalhostinfochangedevent-restore)
* [class TemporalHostInfoRequirerCharmEvents](https://charmhub.io/temporal-k8s/libraries/temporal_host_info#temporalhostinforequirercharmevents)
* [class TemporalHostInfoRequirer](https://charmhub.io/temporal-k8s/libraries/temporal_host_info#temporalhostinforequirer)
* + [def \_\_init\_\_(
    self,
    charm)](https://charmhub.io/temporal-k8s/libraries/temporal_host_info#temporalhostinforequirer-__init__)
* + [def relation(
    self)](https://charmhub.io/temporal-k8s/libraries/temporal_host_info#temporalhostinforequirer-relation)
* + [def host(
    self)](https://charmhub.io/temporal-k8s/libraries/temporal_host_info#temporalhostinforequirer-host)
* + [def port(
    self)](https://charmhub.io/temporal-k8s/libraries/temporal_host_info#temporalhostinforequirer-port)

#### class TemporalHostInfoProvider

Description

A class for managing the temporal-host-info interface provider. None

Methods

TemporalHostInfoProvider.
\_\_init\_\_(

*self*

,
charm: CharmBase

,
port: int
)

Create a new instance of the TemporalHostInfoProvider class.

Description

:param: charm: The charm that is using this interface.
:type charm: CharmBase
:param: port: The port number to provide to requirers. This is typically
the 'frontend' service port.
:type port: int

#### class TemporalHostInfoChangedEvent

Description

Event emitted when temporal-host-info relation data changes. None

Methods

TemporalHostInfoChangedEvent.
\_\_init\_\_(

*self*

,
handle: Handle

,
host: str

,
port: int
)

TemporalHostInfoChangedEvent.
snapshot(

*self*
)

Description

Return a snapshot of the event. None

TemporalHostInfoChangedEvent.
restore(

*self*

,
snapshot
)

Description

Restore the event from a snapshot. None

#### class TemporalHostInfoRequirerCharmEvents

Description

List of events that the requirer charm can leverage. None

#### class TemporalHostInfoRequirer

A class for managing the temporal-host-info interface requirer.

Description

Track this relation in your charm with:

.. code-block:: python

```
self.host_info = TemporalHostInfoRequirer(self)
# update container with new host info
framework.observe(self.host_info.on.temporal_host_info_changed, self._on_host_info_changed)

def _on_host_info_changed(self, event):
    host = self.host_info.host
    port = self.host_info.port
```

Methods

TemporalHostInfoRequirer.
\_\_init\_\_(

*self*

,
charm: CharmBase
)

Create a new instance of the TemporalHostInfoRequirer class.

Description

:param: charm: The charm that is using this interface.
:type charm: CharmBase

TemporalHostInfoRequirer.
relation(

*self*
)

Description

Return the relation for this interface, if any. None

TemporalHostInfoRequirer.
host(

*self*
)

Description

Return the host from the relation data. None

TemporalHostInfoRequirer.
port(

*self*
)

Description

Return the port from the relation data. None
