packages: datasette-cluster-map

This data as json

package info
datasette-cluster-map
{
    "info": {
        "author": "Simon Willison",
        "author_email": "",
        "bugtrack_url": null,
        "classifiers": [],
        "description": "# datasette-cluster-map\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-cluster-map.svg)](https://pypi.python.org/pypi/datasette-cluster-map)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-cluster-map/blob/master/LICENSE)\n\n\nA [Datasette plugin](http://datasette.readthedocs.io/en/latest/plugins.html) that detects tables with `latitude` and `longitude` columns and then plots them on a map using [Leaflet.markercluster](https://github.com/Leaflet/Leaflet.markercluster).\n\nMore about this project: [Datasette plugins, and building a clustered map visualization](https://simonwillison.net/2018/Apr/20/datasette-plugins/)\n\n## Demo\n\n[datasette-cluster-map-demo.datasettes.com](https://datasette-cluster-map-demo.datasettes.com/) hosts a demo of this plugin running against several different tables.\n\n![Cluster map demo](https://static.simonwillison.net/static/2018/datasette-cluster-map.png)\n\n## Installation\n\nRun `pip install datasette-cluster-map` to add this plugin to your Datasette virtual environment. Datasette will automatically load the plugin if it is installed in this way.\n\nIf you are deploying using the `datasette publish` command you can use the `--install` option:\n\n    datasette publish now mydb.db --install=datasette-cluster-map\n\nIf any of your tables have a `latitude` and `longitude` column, a map will be automatically displayed.\n\nIf your columns are called something else you can configure the column names using [plugin configuration](https://datasette.readthedocs.io/en/stable/plugins.html#plugin-configuration) in a `metadata.json` file. For example, if all of your columns are called `xlat` and `xlng` you can create a `metadata.json` file like this:\n\n    {\n        \"title\": \"Regular metadata keys can go here too\",\n        \"plugins\": {\n            \"datasette-cluster-map\": {\n                \"latitude_column\": \"xlat\",\n                \"longitude_column\": \"xlng\"\n            }\n        }\n    }\n\nThen run Datasette like this:\n\n    datasette mydata.db -m metadata.json\n\nThis will configure the required column names for every database loaded by that Datasette instance.\n\nIf you want to customize the column names for just one table in one database, you can do something like this:\n\n    {\n        \"databases\": {\n            \"polar-bears\": {\n                \"tables\": {\n                    \"USGS_WC_eartag_deployments_2009-2011\": {\n                        \"plugins\": {\n                            \"datasette-cluster-map\": {\n                                \"latitude_column\": \"Capture Latitude\",\n                                \"longitude_column\": \"Capture Longitude\"\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n\nYou can also use a custom SQL query to rename those columns to `latitude` and `longitude`, [for example](https://datasette-cluster-map-demo.datasettes.com/polar-bears-455fe3a?sql=select+*%2C+%22Capture+Latitude%22+as+latitude%2C+%22Capture+Longitude%22+as+longitude+from+[USGS_WC_eartag_deployments_2009-2011]):\n\n    select *,\n      \"Capture Latitude\" as latitude,\n      \"Capture Longitude\" as longitude\n    from [USGS_WC_eartag_deployments_2009-2011]\n\n## How I deployed the demo\n\n    datasette publish now \\\n        --install=datasette-cluster-map \\\n        --name=\"datasette-cluster-map-demo\" \\\n        --alias=\"datasette-cluster-map-demo.datasettes.com\" \\\n        polar-bears.db sf-trees.db\n\n\n",
        "description_content_type": "text/markdown",
        "docs_url": null,
        "download_url": "",
        "downloads": {
            "last_day": -1,
            "last_month": -1,
            "last_week": -1
        },
        "home_page": "https://github.com/simonw/datasette-cluster-map",
        "keywords": "",
        "license": "Apache License, Version 2.0",
        "maintainer": "",
        "maintainer_email": "",
        "name": "datasette-cluster-map",
        "package_url": "https://pypi.org/project/datasette-cluster-map/",
        "platform": "",
        "project_url": "https://pypi.org/project/datasette-cluster-map/",
        "project_urls": {
            "Homepage": "https://github.com/simonw/datasette-cluster-map"
        },
        "release_url": "https://pypi.org/project/datasette-cluster-map/0.6/",
        "requires_dist": [
            "datasette"
        ],
        "requires_python": "",
        "summary": "Datasette plugin that shows a cluster map for any data with latitude/longitude columns",
        "version": "0.6"
    },
    "last_serial": 5248440,
    "releases": {
        "0.1": [
            {
                "comment_text": "",
                "digests": {
                    "md5": "8304978b5c631458237453ee01d5c052",
                    "sha256": "ceb3c89c0dbdd141c1551780765274e0e691bc2a53ef9d0ffbadd47d9a5c39ee"
                },
                "downloads": -1,
                "filename": "datasette-cluster-map-0.1.tar.gz",
                "has_sig": false,
                "md5_digest": "8304978b5c631458237453ee01d5c052",
                "packagetype": "sdist",
                "python_version": "source",
                "requires_python": null,
                "size": 2502,
                "upload_time": "2018-04-19T15:34:57",
                "url": "https://files.pythonhosted.org/packages/a4/9b/22e06863695e1f903324f670c6521e41e9ec6ee0e32d2fbf08fdff070d78/datasette-cluster-map-0.1.tar.gz"
            }
        ],
        "0.2": [
            {
                "comment_text": "",
                "digests": {
                    "md5": "fecb52f06cae95163ad4dee0667f9f91",
                    "sha256": "7d1611176bee2860b318c7dcf24fdcb6bf3eb76ae3df89feed7d37b98ef8b8f5"
                },
                "downloads": -1,
                "filename": "datasette-cluster-map-0.2.tar.gz",
                "has_sig": false,
                "md5_digest": "fecb52f06cae95163ad4dee0667f9f91",
                "packagetype": "sdist",
                "python_version": "source",
                "requires_python": null,
                "size": 3869,
                "upload_time": "2018-04-20T13:05:06",
                "url": "https://files.pythonhosted.org/packages/30/ec/6c4ca07edcb64db6f309500f10dcb3bc8b6d632c314e71ed2e355cd54b2a/datasette-cluster-map-0.2.tar.gz"
            }
        ],
        "0.3": [
            {
                "comment_text": "",
                "digests": {
                    "md5": "42f316ab4e300e1ab649c3572c130f3a",
                    "sha256": "895e623374c3c6f45791640a464229ada4e14033ab0dc0beadd64f5a5f9be9f0"
                },
                "downloads": -1,
                "filename": "datasette-cluster-map-0.3.tar.gz",
                "has_sig": false,
                "md5_digest": "42f316ab4e300e1ab649c3572c130f3a",
                "packagetype": "sdist",
                "python_version": "source",
                "requires_python": null,
                "size": 4030,
                "upload_time": "2018-04-20T13:35:24",
                "url": "https://files.pythonhosted.org/packages/f9/f7/7549196bcedd6b92b4201c07c263202bbaea4f8a944a41f722ab781b50bd/datasette-cluster-map-0.3.tar.gz"
            }
        ],
        "0.4": [
            {
                "comment_text": "",
                "digests": {
                    "md5": "ba9fceeef2bb71f32a96af80762793cd",
                    "sha256": "9a37d5abe6ccabee9a9ba283065a1e674b3921d12fbbc94297c05e5cb8eaa8fc"
                },
                "downloads": -1,
                "filename": "datasette-cluster-map-0.4.tar.gz",
                "has_sig": false,
                "md5_digest": "ba9fceeef2bb71f32a96af80762793cd",
                "packagetype": "sdist",
                "python_version": "source",
                "requires_python": null,
                "size": 4166,
                "upload_time": "2018-04-20T13:49:24",
                "url": "https://files.pythonhosted.org/packages/b3/98/a88b5d89ed5a20707f6b64f71fb47d6005b3824a61fb596ddd41de8385bd/datasette-cluster-map-0.4.tar.gz"
            }
        ],
        "0.5": [
            {
                "comment_text": "",
                "digests": {
                    "md5": "40bb82a98106b0a65c0a0ca4b4abfefd",
                    "sha256": "ef7d06094a39c5a8997f5dd822923c89cdcf806dd752c036ac5ebdee14c61cfd"
                },
                "downloads": -1,
                "filename": "datasette_cluster_map-0.5-py3-none-any.whl",
                "has_sig": false,
                "md5_digest": "40bb82a98106b0a65c0a0ca4b4abfefd",
                "packagetype": "bdist_wheel",
                "python_version": "py3",
                "requires_python": null,
                "size": 9860,
                "upload_time": "2019-01-18T06:40:21",
                "url": "https://files.pythonhosted.org/packages/3e/83/f4800037f89e264ccca40ed78647b7dfa178171f5401da74e92832e4d266/datasette_cluster_map-0.5-py3-none-any.whl"
            }
        ],
        "0.6": [
            {
                "comment_text": "",
                "digests": {
                    "md5": "d24f9b2023f5fbfcd0748f59b372e1b6",
                    "sha256": "e641a53714600afabc42d887d6aa835a259a08a8748a014674c8e2434290bf11"
                },
                "downloads": -1,
                "filename": "datasette_cluster_map-0.6-py3-none-any.whl",
                "has_sig": false,
                "md5_digest": "d24f9b2023f5fbfcd0748f59b372e1b6",
                "packagetype": "bdist_wheel",
                "python_version": "py3",
                "requires_python": null,
                "size": 9798,
                "upload_time": "2019-05-09T17:07:23",
                "url": "https://files.pythonhosted.org/packages/5d/7e/af8488642169081bc21e53ff151ea075dd41ea29545eb7e3a99e023637a2/datasette_cluster_map-0.6-py3-none-any.whl"
            }
        ]
    },
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "d24f9b2023f5fbfcd0748f59b372e1b6",
                "sha256": "e641a53714600afabc42d887d6aa835a259a08a8748a014674c8e2434290bf11"
            },
            "downloads": -1,
            "filename": "datasette_cluster_map-0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d24f9b2023f5fbfcd0748f59b372e1b6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9798,
            "upload_time": "2019-05-09T17:07:23",
            "url": "https://files.pythonhosted.org/packages/5d/7e/af8488642169081bc21e53ff151ea075dd41ea29545eb7e3a99e023637a2/datasette_cluster_map-0.6-py3-none-any.whl"
        }
    ]
}
Powered by Datasette · Query took 1.111ms