streamlit-l7vp


Namestreamlit-l7vp JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/lvisei/streamlit-l7vp
SummaryStreamlit Component for rendering L7VP maps
upload_time2024-03-29 02:31:12
maintainerNone
docs_urlNone
authorlvisei
requires_pythonNone
licenseApache-2.0
keywords streamlit l7vp pyl7vp visualization map geospatial visualization geospatial analysis
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## streamlit-l7vp

[L7VP](https://github.com/antvis/L7VP) is an geospatial intelligent visual analysis and application development tools.

This project was created to allow us to render [L7VP](https://github.com/antvis/L7VP) maps in streamlit.🌍 [Live Demo](https://location-insight.streamlit.app) 🌍

[![Latest Stable Version](https://img.shields.io/pypi/v/streamlit-l7vp.svg)](https://pypi.python.org/pypi/streamlit-l7vp)
[![Test Status](https://github.com/lvisei/streamlit-l7vp/workflows/test/badge.svg)](https://github.com/lvisei/streamlit-l7vp/actions?query=workflow:test)

## Installation

```
pip install streamlit-l7vp
```

## Usage

```py
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](https://github.com/antvis/L7VP/tree/master/bindings/pyl7vp#user-guide).

## Local Development

### Clone code

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

### Install python module

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

### Release a new version

Update `version` in `setup.py`

```py
version="0.0.1"
```

Build and publish

```bash
python setup.py upload
```

## License

[Apache-2.0](./LICENSE)



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/lvisei/streamlit-l7vp",
    "name": "streamlit-l7vp",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "Streamlit, L7VP, PyL7VP, visualization, map, geospatial visualization, geospatial analysis",
    "author": "lvisei",
    "author_email": "yunji.me@outlook.com",
    "download_url": "https://files.pythonhosted.org/packages/12/46/f024aedfd39917ecb28d5b037e4374b7d656196e0cf631a9abe693c6eed5/streamlit-l7vp-0.0.1.tar.gz",
    "platform": null,
    "description": "## streamlit-l7vp\n\n[L7VP](https://github.com/antvis/L7VP) is an geospatial intelligent visual analysis and application development tools.\n\nThis project was created to allow us to render [L7VP](https://github.com/antvis/L7VP) maps in streamlit.\ud83c\udf0d [Live Demo](https://location-insight.streamlit.app) \ud83c\udf0d\n\n[![Latest Stable Version](https://img.shields.io/pypi/v/streamlit-l7vp.svg)](https://pypi.python.org/pypi/streamlit-l7vp)\n[![Test Status](https://github.com/lvisei/streamlit-l7vp/workflows/test/badge.svg)](https://github.com/lvisei/streamlit-l7vp/actions?query=workflow:test)\n\n## Installation\n\n```\npip install streamlit-l7vp\n```\n\n## Usage\n\n```py\nimport streamlit as st\nfrom pyl7vp import L7VP\nfrom streamlit_l7vp import l7vp_static\nimport pandas as pd\n\ndf = pd.DataFrame(\n    {'id': ['a', 'b', 'c'],\n     'point_latitude': [31.2384, 31.2311, 31.2334],\n     'point_longitude': [108.30948, 108.30231, 108.30238],\n     'value': [5, 11, 9],\n     'time': ['2019-08-01 12:00:00', '2019-08-01 12:05:00', '2020-08-01 11:55:00']\n     })\n\nl7vp_map = L7VP(height = 600)\n# Add dataset to map\nl7vp_map.add_dataset({\"id\": \"my_dataset\", \"type\": 'local', \"data\": df})\n\n\nl7vp_static(l7vp_map)\n```\n\n## API\n\n### l7vp_static parameters\n\n- fig: `pyl7vp.L7VP` map figure.\n- height: Fixed pixel height of the map. Optional, might result in non-optimal layout on some devices. By\n  default the map height is determined by the l7vp figure height.\n- width: Fixed pixel width of the map. Optional, by default the map width adjusts to the streamlit layout.\n- read_only: Disables the side panel for map customization, default False.\n\n### L7VP API\n\nL7VP API see the [pyl7vp docs](https://github.com/antvis/L7VP/tree/master/bindings/pyl7vp#user-guide).\n\n## Local Development\n\n### Clone code\n\n```shell\ngit clone https://github.com/lvisei/streamlit-l7vp.git\n```\n\n### Install python module\n\n```sh\n# dev install from folder containing setup.py\npip install -e .\n```\n\n### Release a new version\n\nUpdate `version` in `setup.py`\n\n```py\nversion=\"0.0.1\"\n```\n\nBuild and publish\n\n```bash\npython setup.py upload\n```\n\n## License\n\n[Apache-2.0](./LICENSE)\n\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Streamlit Component for rendering L7VP maps",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/lvisei/streamlit-l7vp"
    },
    "split_keywords": [
        "streamlit",
        " l7vp",
        " pyl7vp",
        " visualization",
        " map",
        " geospatial visualization",
        " geospatial analysis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "18704dd7f9d4a88516a77b817e3ebf45bf677d8600b301bf679136ec916735ab",
                "md5": "e7be0e3cdb01d8cd03fb7459fbebbe22",
                "sha256": "c85593e64af98c20449f7e99427250bfd3c8583f899cd5415c9f3a87ac8e570e"
            },
            "downloads": -1,
            "filename": "streamlit_l7vp-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e7be0e3cdb01d8cd03fb7459fbebbe22",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7276,
            "upload_time": "2024-03-29T02:31:11",
            "upload_time_iso_8601": "2024-03-29T02:31:11.155692Z",
            "url": "https://files.pythonhosted.org/packages/18/70/4dd7f9d4a88516a77b817e3ebf45bf677d8600b301bf679136ec916735ab/streamlit_l7vp-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1246f024aedfd39917ecb28d5b037e4374b7d656196e0cf631a9abe693c6eed5",
                "md5": "0a57f1cebf6c391d2096ea9ec259b677",
                "sha256": "dbee551006f28053b790dc465e62b98d7a597ee371524457550280f2674cb822"
            },
            "downloads": -1,
            "filename": "streamlit-l7vp-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0a57f1cebf6c391d2096ea9ec259b677",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7266,
            "upload_time": "2024-03-29T02:31:12",
            "upload_time_iso_8601": "2024-03-29T02:31:12.846948Z",
            "url": "https://files.pythonhosted.org/packages/12/46/f024aedfd39917ecb28d5b037e4374b7d656196e0cf631a9abe693c6eed5/streamlit-l7vp-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-29 02:31:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lvisei",
    "github_project": "streamlit-l7vp",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "streamlit-l7vp"
}
        
Elapsed time: 0.23577s