seizethedata / greppo

Build & deploy geospatial applications quick and easy.

Home Page:https://greppo.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hey there, this is Greppo...

A Python framework for building geospatial web-applications.

Greppo is an open-source Python framework that makes it easy to build applications. It provides a toolkit for to quickly integrate data, algorithms, visualizations and UI for interactivity.

Documentation: docs.greppo.io

Website: https://greppo.io

Discord Community: https://discord.gg/RNJBjgh8gz

Installation

$ pip install greppo

We suggest you use a virtual environment to manage your packages for this project. For more infromation and troubleshooting visit the Installation Guide.

A simple example

# inside app.py

from greppo import app
import geopandas as gpd

data_gdf = gpd.read_file("geospatial_data.geojson")

buildings_gdf = gpd.read_file("./data/buildings.geojson")

app.overlay_layer(
    buildings_gdf,
    title="Buildings",
    description="Buildings in a neighbourhood in Amsterdam",
    style={"fillColor": "#F87979"},
    visible=True,
)

app.base_layer(
    name="Open Street Map",
    visible=True,
    url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
    subdomains=None,
    attribution='&copy; <a target="_blank" href="http://osm.org/copyright">OpenStreetMap</a> contributors',
)

Then run the aplication using the greppo cli command:

greppo serve app.py

To view the app that is being served, enter this address of the localhost 127.0.0.1:8000/ in your web browser.

Support & Community

Do you have questions? Ideas? Want to share your project? Join us on discord Invite Link.

License

Greppo is licensed under Apache V2.

About

Build & deploy geospatial applications quick and easy.

https://greppo.io

License:Apache License 2.0


Languages

Language:Python 48.9%Language:Vue 40.2%Language:JavaScript 9.9%Language:HTML 0.7%Language:Makefile 0.3%Language:CSS 0.0%