aiopmtiles icon indicating copy to clipboard operation
aiopmtiles copied to clipboard

Issue 1

Open vincentsarago opened this issue 2 years ago • 2 comments

What

Async python module to READ PMTiles archives. With the idea of being able to create simple Python tile server (e.g using FastAPI).

Why

PMTiles already has a Reader but it's written in non async mode. We could contribute to PMTiles to update the current Reader but I wanted to try first outside the PMTiles repo.

Next

  • [x] add test
  • [x] remove CLI or make it optional
  • [ ] add a way to register more filesystem

vincentsarago avatar Apr 12 '23 13:04 vincentsarago

LGTM! I'm open to making the upstream Reader async if that can address all use cases like writing quick and dirty CLI programs. Unfortunately it does seem like many python libraries need separate async implementations right?

bdon avatar Apr 13 '23 10:04 bdon

thanks @bdon, I originally wanted to contribute to PMTiles directly add an AsyncReader but I was afraid that I had to break things on the actual implementation.

I'll try to see if I can at least write a simple AsyncReader now that I have a better understanding of the library

vincentsarago avatar Apr 13 '23 13:04 vincentsarago