Metadata-Version: 2.1
Name: streamlit-pannellum
Version: 0.0.2
Summary: This library is a streamlit app for panorama, 360/HDRI image show and interact.
Home-page: https://gitlab.com/nicolalandro/streamlit-pannellum
Author: Nicola Landro
Author-email: nicolaxx94@live.it
License: UNKNOWN
Project-URL: Source, https://gitlab.com/nicolalandro/streamlit-pannellum
Keywords: panorama,360,HDRI,streamlit
Platform: UNKNOWN
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# Streamlit Pannellum
This plugin is the Streamlit implementation of Pannellum a lightweight, free, and open source panorama viewer for the web.

![Screen app example](https://gitlab.com/nicolalandro/streamlit-pannellum/-/raw/main/imgs/app.png)

## Example of usage
Install streamlit_pannellum in your environment:

```
pip install streamlit_pannellum
```

Into your streamlit app (egg. main.py):

```
from streamlit_pannellum import streamlit_pannellum

streamlit_pannellum(
    config={
      "default": {
        "firstScene": "first",
      },
      "scenes": {
        "first": {
          "title": "My first example",
          "type": "equirectangular",
          "panorama": "https://pannellum.org/images/alma.jpg",
          "autoLoad": True,
          "author": "Me",
          "hotSpots": [
            {
              "pitch": 15,
              "yaw": 0,
              "type": "info",
              "text": "This is an info."
            },
            {
              "pitch": 0,
              "yaw": -10,
              "type": "scene",
              "text": "Second scene",
              "sceneId": "second"
            }
          ],
        },
        "second": {
          "title": "My second example",
          "type": "equirectangular",
          "panorama": "https://pannellum.org/images/alma.jpg",
          "autoLoad": True,
          "author": "always Me",
          "hotSpots": [
            {
              "pitch": 15,
              "yaw": 0,
              "type": "info",
              "text": "This is an info."
            },
            {
              "pitch": 0,
              "yaw": -10,
              "type": "scene",
              "text": "First scene",
              "sceneId": "first"
            }
          ],
        }
      }
    }
)
```

