{"library":"pmtiles","title":"PMTiles","description":"Library and utilities to write and read PMTiles archives — cloud-optimized archives of map tiles. Version 3.7.0, actively maintained with frequent releases.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pmtiles"],"cli":{"name":"pmtiles","version":"sh: 1: pmtiles: not found"}},"imports":["from pmtiles.reader import Reader","from pmtiles.writer import Writer"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pmtiles.reader import Reader\n\n# Read from a local file or URL\nreader = Reader('example.pmtiles')\nheader = reader.header()\nprint(header.tile_type, header.min_zoom, header.max_zoom)\n\n# Fetch a tile at zoom 10, x 512, y 512\ntile = reader.get_tile(10, 512, 512)\nif tile:\n    print(f'Tile size: {len(tile)} bytes')","lang":"python","description":"Open a PMTiles archive, inspect header, and fetch a tile.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}