Skip to main content

Async version of protomaps/PMTiles.

Project description

aiopmtiles

Async Version of Python PMTiles Reader.

Test Coverage Package version Downloads Downloads


Documentation: https://developmentseed.org/aiopmtiles/

Source Code: https://github.com/developmentseed/aiopmtiles


aiopmtiles is a python Async I/O version of the great PMTiles python reader.

The PMTiles format is a Cloud-optimized + compressed single-file tile archives for vector and raster maps.

Installation

$ python -m pip install pip -U

# From Pypi
$ python -m pip install aiopmtiles

# Or from source
$ python -m pip install git+http://github.com/developmentseed/aiopmtiles

Example

from async_pmtiles import PMTilesReader
from obstore.store import HTTPStore

store = HTTPStore("https://r2-public.protomaps.com/protomaps-sample-datasets")
src = await PMTilesReader.open("cb_2018_us_zcta510_500k.pmtiles", store=store)

# PMTiles Metadata
meta = await src.metadata()

# Spatial Metadata
bounds = src.bounds
minzoom, maxzoom = src.minzoom, src.maxzoom

# Is the data a Vector Tile Archive
assert src.is_vector

# PMTiles tiles type
src.tile_type

# Tile Compression
src.tile_compression

# Get Tile
data = await src.get_tile(x=0, y=0, z=0)

Contribution & Development

See CONTRIBUTING.md

Authors

See contributors

Changes

See CHANGES.md.

License

See LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

async_pmtiles-0.1.0b1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

async_pmtiles-0.1.0b1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file async_pmtiles-0.1.0b1.tar.gz.

File metadata

  • Download URL: async_pmtiles-0.1.0b1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for async_pmtiles-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 c9dd6367ef7c3f2fd94d704f71e60096a61d3912f937a93586699cac726e44b7
MD5 e77d38ce4bd67431e321b24b1093d597
BLAKE2b-256 2a827871a5d3f1415629355249069e20935e372f214e98f3e7dc5735c6fdce42

See more details on using hashes here.

File details

Details for the file async_pmtiles-0.1.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for async_pmtiles-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 b7d7f70457cbf9c3a378b6a88ffdaf2f704f1311b60fc5c8b4bc5e92ef1ba13d
MD5 d4b23ca147c102ee0ee527a227c3a303
BLAKE2b-256 b6321410a517a7eb4d050878b873c16340a5cae504713ccb7818f8453f0bbf76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page