Skip to main content

Keops

Project Status: Active – The project has reached a stable, usable state and is being actively developed. CI

Keops logo

Keops is a CLI tool that allows you to apply some logic to vector tiles in a MBTiles file, such as removing or getting the size of a given tile, obtaining the vector layers that conform the MBTiles or shrinking the vector data, in order to reduce the data size.

Read the full documentation for more details: keops.franmartin.es.

Installation

Keops needs Python 3.7 or higher. The recommended way to install it is via pip.

pip install keops-vt

If you want to run the shrink command you also need Docker.

CLI Usage

The usage is pretty simple and straigthforward. For instance, if you want to drop a given tile in a MBTiles:

keops erase input.mbtiles 6/10/23

Keops have some more functionalities. To check them, simply execute keops or keops --help in your bash.

Usage: keops [OPTIONS] COMMAND [ARGS]...

  Keops command line interface

Options:
  --help  Show this message and exit.
 
Commands:
  debug   Debug a MBTiles file: get info related with layers and their
          features in a given MBTiles
  erase   Erase a tile in a MBTiles file
  info    Extract and print the metadata info from a MBTiles file
  shrink  Reduce and simplify all features of all or any vector tiles in a
          MBTiles container. Docker required.
  size    Get the size of a given tile or zoom level in a MBTiles file

Roadmap

If you are interested on the roadmap of the project, check the ROADMAP file.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Credits

The merit of the shrink module belongs entirely to rastapasta, as the unique developer of tileshrink, and ooZberg, as the person who wrapped it in a Docker image in order to use it without worrying about the Node.js version. What I have done is creating a backup of the Docker image and wrapping it again in this package, so it can be used in a focused environment.

Metadata

Release files for keops-vt 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for keops-vt 1.0.0
File Size Uploaded
keops-vt-1.0.0.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for keops-vt 1.0.0
File Interpreter ABI Platform
keops_vt-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.2 kB

Release files / keops-vt-1.0.0.tar.gz

Download URL keops-vt-1.0.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
733449206d1ed3990bc0366c81d3062e86633044655479bce8e2a85252427f7c
BLAKE2b-256 checksum
How to use checksums
5745c82bda2d4d632a2c31573207a96abcbfa73e98b5046e3f95762d00e7634c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / keops_vt-1.0.0-py3-none-any.whl

Download URL keops_vt-1.0.0-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4ebf64fa9756d1c5df115ddbdf1e51f4d3baa28ee325fd434a78d4db9e9deb3
BLAKE2b-256 checksum
How to use checksums
b269415417705ffc12f2230639659ba5fbd09403bcba46d0dae3c1b93fe92989
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page