Skip to main content

Open in Huggingface

Streamlit Pannellum

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

Screen app example

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"
            }
          ],
        }
      }
    }
)

Metadata

Release files for streamlit-pannellum 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamlit-pannellum 0.0.3
File Size Uploaded
streamlit_pannellum-0.0.3.tar.gz 71.5 kB Details

Release files / streamlit_pannellum-0.0.3.tar.gz

Download URL streamlit_pannellum-0.0.3.tar.gz
Size 71.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1ae08178790fa659e1e1f7a4a14843e94ebe0eedc024bbd648203525e711992c
BLAKE2b-256 checksum
How to use checksums
031eb5cc57200cc590e78f79859a74b5415e572e1c5a2555bf1b7eee90a396c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page