Skip to main content

Python3 binding for @AntV/L7VP geospatial visual analysis tool.

Project description

English | 简体中文

PyL7VP

🌍 Python3 binding for @AntV/L7VP geospatial visual analysis tool.

Latest Stable Version Test Status Pypi Download

Installation

$ pip install pyl7vp

Usage

Jupyter Notebook and JupyterLab

from pyl7vp import L7VP

l7vp_map = L7VP(height = 600)

# data
data = [
  { "longitude": 105.005, "latitude": 32.349, "mag": 5.2 },
  { "longitude": 104.602, "latitude": 32.067, "mag": 3 },
  { "longitude": 103.665, "latitude": 31.29, "mag": 6 },
  { "longitude": 105.275, "latitude": 32.416, "mag": 2 }
]

# add dataset to map
l7vp_map.add_dataset({"id": "my_dataset", "type": 'local', "data": data})

# Set config
l7vp_map.set_config({
  "map": {
    "type": "Gaode",
    "config": {
            "zoom": 7,
            "center": [104.615357, 32.068745],
            "style": 'dark',
        },
  },
})

# display map
l7vp_map.show()

Save to HTML File

from pyl7vp import L7VP

l7vp_map = L7VP(height = 600)

# save to html file
l7vp_map.save_to_html("map.html")

User Guide

Local Development

Install Jupyter

# Using pip
pip install jupyter

# or Using conda
# conda install jupyter

Clone code

git clone https://github.com/antvis/L7VP.git

Setup jupyter

Install python module

cd bindings/pyl7vp

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

Start jupyter notebook

cd notebooks
jupyter notebook

Release a new version

Update version in bindings/pyl7vp/pyl7vp/meta.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

pyl7vp-0.0.3.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

pyl7vp-0.0.3-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file pyl7vp-0.0.3.tar.gz.

File metadata

  • Download URL: pyl7vp-0.0.3.tar.gz
  • Upload date:
  • Size: 14.6 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.16 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 pyl7vp-0.0.3.tar.gz
Algorithm Hash digest
SHA256 eb0cb76f148910614c6bfebf14d3eee4b5064102279eba266c43aa74f0804f5e
MD5 95f0b392834fcf273474c1885f3ab0f0
BLAKE2b-256 4d45a82cec87f44058f32f7ca716c195e319f58c78938abb1ebbbfdd5938e86c

See more details on using hashes here.

File details

Details for the file pyl7vp-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyl7vp-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.0 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.16 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 pyl7vp-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9e78b466ab80a4129189b227a57f4fa6d7e66b97882f4bef0b3afba0d3b49672
MD5 5d07e2f10df46fbebece49efbb98e11b
BLAKE2b-256 f968a1337c3a9a02946e0d591656f05cc6a62de6efb752bb6535ec747ef5ab54

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