datasette-basemap-0.2
توضیحات
A basemap for Datasette and datasette-leaflet
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | datasette-basemap-0.2 |
| نام | datasette-basemap |
| نسخه کتابخانه | 0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Simon Willison |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/simonw/datasette-basemap |
| آدرس اینترنتی | https://pypi.org/project/datasette-basemap/ |
| مجوز | Apache License, Version 2.0 |
# datasette-basemap
[](https://pypi.org/project/datasette-basemap/)
[](https://github.com/simonw/datasette-basemap/releases)
[](https://github.com/simonw/datasette-basemap/actions?query=workflow%3ATest)
[](https://github.com/simonw/datasette-basemap/blob/main/LICENSE)
A basemap for Datasette and datasette-leaflet
## Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-basemap
## Usage
This plugin will make a `basemap` database available containing OpenStreetMap tiles in the [mbtiles](https://github.com/mapbox/mbtiles-spec) format. It is designed for use with the [datasette-tiles](https://datasette.io/plugins/datasette-tiles) tile server plugin.
## Demo
You can preview this map at https://datasette-tiles-demo.datasette.io/-/tiles/basemap and browse the database directly at https://datasette-tiles-demo.datasette.io/basemap
## License
The data bundled with this package is © OpenStreetMap contributors, licensed under the [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/). See [this page](https://www.openstreetmap.org/copyright) for more details.
## Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-basemap
python3 -mvenv venv
source venv/bin/activate
Or if you are using `pipenv`:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest
نیازمندی
| مقدار | نام |
|---|---|
| - | datasette |
| - | pytest |
| - | pytest-asyncio |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl datasette-basemap-0.2:
pip install datasette-basemap-0.2.whl
نصب پکیج tar.gz datasette-basemap-0.2:
pip install datasette-basemap-0.2.tar.gz