---
title: Charmhub | Deploy Juju Dashboard using Charmhub - The Open Operator Collection
description: Deploy the latest version of Juju Dashboard on any cloud.
url: https://charmhub.io/juju-dashboard/libraries/juju_dashboard
---

# Juju Dashboard

[Juju Engineering](https://charmhub.io/publisher/team-juju "View all packages from Juju Engineering")

* [Juju Engineering](https://charmhub.io/publisher/team-juju "View all packages from Juju Engineering")

Platform:

24.04

22.04

20.04

0.15/stable 78

```
juju deploy juju-dashboard --channel 0.15/stable
```

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

[Toggle side navigation](https://charmhub.io/juju-dashboard/libraries/juju_dashboard#drawer)

## charms.juju\_dashboard.v0.juju\_dashboard

* [*Docstrings*Docstrings](https://charmhub.io/juju-dashboard/libraries/juju_dashboard)
  [*Code*Source code](https://charmhub.io/juju-dashboard/libraries/juju_dashboard/source-code)
* + Download

    Fetch library

    ```
    charmcraft fetch-lib charms.juju_dashboard.v0.juju_dashboard
    ```

    [Download juju\_dashboard.py](https://charmhub.io/juju-dashboard/libraries/juju_dashboard/download)
  + *Last updated* 17 Aug 2022
  + *Revision* Library version 0.1

TODO: Add a proper docstring here.

This is a placeholder docstring for this charm library. Docstrings are
presented on Charmhub and updated whenever you push a new version of the
library.

Complete documentation about creating and documenting libraries can be found
in the SDK docs at https://juju.is/docs/sdk/libraries.

See `charmcraft publish-lib` and `charmcraft fetch-lib` for details of how to
share and consume charm libraries. They serve to enhance collaboration
between charmers. Use a charmer's libraries for classes that handle
integration with their charm.

Bear in mind that new revisions of the different major API versions (v0, v1,
v2 etc) are maintained independently. You can continue to update v0 and v1
after you have pushed v3.

Markdown is supported, following the CommonMark specification.

---

Index

* [class JujuDashReq](https://charmhub.io/juju-dashboard/libraries/juju_dashboard#jujudashreq)
* + [def \_\_init\_\_(
    self,
    charm,
    relation,
    provider)](https://charmhub.io/juju-dashboard/libraries/juju_dashboard#jujudashreq-__init__)
* [class JujuDashData](https://charmhub.io/juju-dashboard/libraries/juju_dashboard#jujudashdata)
* + [def \_\_init\_\_(
    self,
    data)](https://charmhub.io/juju-dashboard/libraries/juju_dashboard#jujudashdata-__init__)
* + [def \_\_contains\_\_(
    self,
    key)](https://charmhub.io/juju-dashboard/libraries/juju_dashboard#jujudashdata-__contains__)
* + [def \_\_len\_\_(
    self)](https://charmhub.io/juju-dashboard/libraries/juju_dashboard#jujudashdata-__len__)
* + [def \_\_iter\_\_(
    self)](https://charmhub.io/juju-dashboard/libraries/juju_dashboard#jujudashdata-__iter__)
* + [def \_\_getitem\_\_(
    self,
    key)](https://charmhub.io/juju-dashboard/libraries/juju_dashboard#jujudashdata-__getitem__)
* + [def \_\_repr\_\_(
    self)](https://charmhub.io/juju-dashboard/libraries/juju_dashboard#jujudashdata-__repr__)

#### class JujuDashReq

Implementation of the "requires" (client) side of the relation.

Description

Counterintuitively, this is the Dashboard. The Juju Controller is "providing" us with
the information the Dashboard needs to connect.

Methods

JujuDashReq.
\_\_init\_\_(

*self*

,
charm: CharmBase

,
relation: Relation

,
provider: Application
)

Populate our relation data.

Arguments

charm

the charm that is using this library.

relation

the relation with the Juju controller. Usually even.relation in a
relation handler.

provider

The Application providing the controller data. Usually a
juju-controller application.

Description

Also tries to send the endpoint data that the dashboard is being hosted at. This
information can be relayed to the user via the controller when the user runs the
`juju dashboard` command.

#### class JujuDashData

Methods

JujuDashData.
\_\_init\_\_(

*self*

,
data
)

Parse the config data from the controller into a Mapping.

Arguments

relation

the relation with the Juju controller. Usually even.relation in a
relation handler.

provider

The Application providing the controller data. Usually a
juju-controller application.

Description

Note: The controller charm provides the full controller path but we use this path
to generate the controller and model paths so we need to remove the supplied
"/api" suffix.

JujuDashData.
\_\_contains\_\_(

*self*

,
key
)

JujuDashData.
\_\_len\_\_(

*self*
)

JujuDashData.
\_\_iter\_\_(

*self*
)

JujuDashData.
\_\_getitem\_\_(

*self*

,
key
)

JujuDashData.
\_\_repr\_\_(

*self*
)
