Skip to main content

This library is a streamlit app for panorama, 360/HDRI image show and interact.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_pannellum-0.0.2.tar.gz (71.3 kB view details)

Uploaded Source

File details

Details for the file streamlit_pannellum-0.0.2.tar.gz.

File metadata

  • Download URL: streamlit_pannellum-0.0.2.tar.gz
  • Upload date:
  • Size: 71.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for streamlit_pannellum-0.0.2.tar.gz
Algorithm Hash digest
SHA256 52741e330e366d1794ac59ef3ffcf39241839c23e4e8d46d2656f32295870456
MD5 e65382fe1ca316aeaf195fe750b05fc3
BLAKE2b-256 d5956dcaba88187444b0b78283a5910e095d29510e9f0d79a26a97e78de321e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page