Skip to main content

Streamlit Component for rendering L7VP maps

Project description

streamlit-l7vp

L7VP is an geospatial intelligent visual analysis and application development tools.

This project was created to allow us to render L7VP maps in streamlit.🌍 Live Demo 🌍

Latest Stable Version Test Status

Installation

pip install streamlit-l7vp

Usage

import streamlit as st
from pyl7vp import L7VP
from streamlit_l7vp import l7vp_static
import pandas as pd

df = pd.DataFrame(
    {'id': ['a', 'b', 'c'],
     'point_latitude': [31.2384, 31.2311, 31.2334],
     'point_longitude': [108.30948, 108.30231, 108.30238],
     'value': [5, 11, 9],
     'time': ['2019-08-01 12:00:00', '2019-08-01 12:05:00', '2020-08-01 11:55:00']
     })

l7vp_map = L7VP(height = 600)
# Add dataset to map
l7vp_map.add_dataset({"id": "my_dataset", "type": 'local', "data": df})


l7vp_static(l7vp_map)

API

l7vp_static parameters

  • fig: pyl7vp.L7VP map figure.
  • height: Fixed pixel height of the map. Optional, might result in non-optimal layout on some devices. By default the map height is determined by the l7vp figure height.
  • width: Fixed pixel width of the map. Optional, by default the map width adjusts to the streamlit layout.
  • read_only: Disables the side panel for map customization, default False.

L7VP API

L7VP API see the pyl7vp docs.

Local Development

Clone code

git clone https://github.com/lvisei/streamlit-l7vp.git

Install python module

# dev install from folder containing setup.py
pip install -e .

Release a new version

Update version in setup.py

version="0.0.1"

Build and publish

python setup.py upload

License

Apache-2.0

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-l7vp-0.0.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

streamlit_l7vp-0.0.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file streamlit-l7vp-0.0.1.tar.gz.

File metadata

  • Download URL: streamlit-l7vp-0.0.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.2

File hashes

Hashes for streamlit-l7vp-0.0.1.tar.gz
Algorithm Hash digest
SHA256 dbee551006f28053b790dc465e62b98d7a597ee371524457550280f2674cb822
MD5 0a57f1cebf6c391d2096ea9ec259b677
BLAKE2b-256 1246f024aedfd39917ecb28d5b037e4374b7d656196e0cf631a9abe693c6eed5

See more details on using hashes here.

File details

Details for the file streamlit_l7vp-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: streamlit_l7vp-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.2

File hashes

Hashes for streamlit_l7vp-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c85593e64af98c20449f7e99427250bfd3c8583f899cd5415c9f3a87ac8e570e
MD5 e7be0e3cdb01d8cd03fb7459fbebbe22
BLAKE2b-256 18704dd7f9d4a88516a77b817e3ebf45bf677d8600b301bf679136ec916735ab

See more details on using hashes here.

Supported by

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