{"id":13856864,"url":"https://github.com/Oslandia/postile","last_synced_at":"2025-07-13T19:33:07.847Z","repository":{"id":57454298,"uuid":"120642278","full_name":"Oslandia/postile","owner":"Oslandia","description":"Project migrated to: https://gitlab.com/Oslandia/postile","archived":true,"fork":false,"pushed_at":"2020-04-06T12:44:43.000Z","size":40,"stargazers_count":72,"open_issues_count":0,"forks_count":12,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-07-13T15:45:52.486Z","etag":null,"topics":["asyncpg","gis","mapbox","openmaptiles","openmaptiles-schema","postgis","postgresql","sanic","vector","vector-tiles"],"latest_commit_sha":null,"homepage":"https://gitlab.com/Oslandia/postile","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Oslandia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-07T16:40:49.000Z","updated_at":"2024-03-09T23:56:02.000Z","dependencies_parsed_at":"2022-09-04T18:22:19.632Z","dependency_job_id":null,"html_url":"https://github.com/Oslandia/postile","commit_stats":null,"previous_names":["ldgeo/postile"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oslandia%2Fpostile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oslandia%2Fpostile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oslandia%2Fpostile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oslandia%2Fpostile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oslandia","download_url":"https://codeload.github.com/Oslandia/postile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213988280,"owners_count":15666955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncpg","gis","mapbox","openmaptiles","openmaptiles-schema","postgis","postgresql","sanic","vector","vector-tiles"],"created_at":"2024-08-05T03:01:16.513Z","updated_at":"2024-08-05T03:02:16.549Z","avatar_url":"https://github.com/Oslandia.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"\"\u003e\u003cimg src=\"assets/graphics/postile_logo.svg\" alt=\"PostTile\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://hub.docker.com/r/oslandia/postile/\" target=\"_blank\"\u003e\n\t    \u003cimg src=\"https://images.microbadger.com/badges/image/oslandia/postile.svg\" alt=\"Build Status\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://pypi.org/project/postile\" target=\"_blank\"\u003e\n\t    \u003cimg src=\"https://img.shields.io/pypi/v/postile\" alt=\"Package version\"\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nFast Mapbox Vector Tile Server mainly suited for the [openmaptiles vector tile schema](https://github.com/openmaptiles/openmaptiles)\n\n## Features\n\n- Support for PostGIS backend through a tm2source (as generated by [OpenMapTiles](https://github.com/openmaptiles/openmaptiles))\n- Support for PostGIS single layers\n- Support for reading MBTiles\n- On-the-fly reprojection to web mercator EPSG:3857 (only for single layers)\n- Connection pooling and asynchronous requests thanks to [asyncpg](https://github.com/MagicStack/asyncpg)\n\n## Requirements \n\n- Python `\u003e= 3.6`\n- for PostGIS backend, recent `ST_AsMVT` function. At least PostGIS \u003e= 2.4.0.\n\n\n## Installation \n\n    pip install cython\n    pip install -e .\n    postile --help\n\n## Using a Docker container\n\nStart Postile with:\n\n    docker run --network host oslandia/postile postile --help\n\n## Example of serving postgis layers individually\n\n    postile --pguser **** --pgpassword **** --pgdatabase mydb --pghost localhost --listen-port 8080 --cors\n\nThen layer `boundaries` can be served with: \n\n    http://localhost:8080/boundaries/z/x/y.pbf?fields=id,name\n\n`fields` is optional, and when absent only geometries are encoded in the vector tile.\n\n## Preview \n\nThe root endpoint will display a built-in viewer with `mapbox-gl-js`.\nIn `DEBUG` mode the same page will also add some checkboxes to show tile boundaries and collision boxes (for labels). \n\n\n---\n*For a concrete example using OpenMapTiles schema see [this tutorial](https://github.com/ldgeo/postile-openmaptiles)*\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOslandia%2Fpostile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOslandia%2Fpostile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOslandia%2Fpostile/lists"}