supermercado
supermercado extends the functionality of mercantile with additional commands
Quickstart
pip install supermercado
Usage
Usage: supermercado [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
burn Burn a stream of GeoJSON into a output...
edges For a stream of [<x>, <y>, <z>] tiles, return...
union Returns the unioned shape of a stream of...
supermercado burn
<{geojson} stream> | supermercado burn <zoom> | <[x, y, z] stream>
Takes an input stream of GeoJSON and returns a stream of intersecting [x, y, z]s for a given zoom.
cat data/ellada.geojson | supermercado burn 10 | mercantile shapes | fio collect
supermercado edges
<[x, y, z] stream> | supermercado edges | <[x, y, z] stream>
Outputs a stream of [x, y, z]s representing the edge tiles of an input stream of [x, y, z]s. Edge tile = any tile that is either directly adjacent to a tile that does not exist, or diagonal to an empty tile.
cat data/ellada.geojson | supermercado burn 10 | supermercado edges | mercantile shapes | fio collect | geojsonio
supermercado union
<[x, y, z] stream> | supermercado union | <{geojson} stream>
Outputs a stream of unioned GeoJSON from an input stream of [x, y, z]s. Like mercantile shapes but as an overall footprint instead of individual shapes for each tile.
cat data/ellada.geojson | supermercado burn 10 | supermercado union | fio collect | geojsonio
getting crazy
cat data/ellada.geojson | supermercado burn 12 | supermercado edges | supermercado union | fio collect | geojsonio
Contributing
Developing
git clone git@github.com:mapbox/supermercado.git
cd supermercado
uv venv
source .venv/bin/activate
uv sync --all-groups
Releasing
- Within your PR, update
pyproject.tomlwith the new version number - Once the PR is merged, pull
mainand verify the tests
uv run pytest
uv run ruff check .
uv run ruff format --check .
- Tag with the new version number and push
# ie
$ git checkout main
$ git pull
$ git tag 1.2.3
$ git push origin main 1.2.3
- GitHub Actions builds the release, runs
uvx twine check, and publishes to PyPI using thepypienvironment token
Metadata
Release files for supermercado 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| supermercado-0.4.0.tar.gz | 11.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| supermercado-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / supermercado-0.4.0.tar.gz
| Download URL | supermercado-0.4.0.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48dde7bba62fa492f6dc0edaa8c3e70286f85531edd15e35fb5b638d534b6a5a
|
|
BLAKE2b-256 checksum How to use checksums |
d4cba27f0e78482e2de59d48f36c54951c0066768c74c0e628c313f17bd6c2d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / supermercado-0.4.0-py3-none-any.whl
| Download URL | supermercado-0.4.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
afefff2fdc52e05076be3fae95372343214d2a29d79828979ff0d8ef0a5270ec
|
|
BLAKE2b-256 checksum How to use checksums |
c16bd9c8424de13ead0f72f4f65b85c0604cd22bc20cc0b578a78ba8890063a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for supermercado 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.