Skip to main content

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

Metadata

Release files for streamlit-l7vp 0.0.1

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-l7vp 0.0.1
File Size Uploaded
streamlit-l7vp-0.0.1.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-l7vp 0.0.1
File Interpreter ABI Platform
streamlit_l7vp-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.5 kB

Release files / streamlit-l7vp-0.0.1.tar.gz

Download URL streamlit-l7vp-0.0.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
dbee551006f28053b790dc465e62b98d7a597ee371524457550280f2674cb822
BLAKE2b-256 checksum
How to use checksums
1246f024aedfd39917ecb28d5b037e4374b7d656196e0cf631a9abe693c6eed5
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / streamlit_l7vp-0.0.1-py3-none-any.whl

Download URL streamlit_l7vp-0.0.1-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c85593e64af98c20449f7e99427250bfd3c8583f899cd5415c9f3a87ac8e570e
BLAKE2b-256 checksum
How to use checksums
18704dd7f9d4a88516a77b817e3ebf45bf677d8600b301bf679136ec916735ab
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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