Skip to main content

ROK4 Python libraries

ROK4 Logo

The rok4 package help to use ROK4 project concepts, like Tile Matrix Sets, data pyramids or layers.

Installation

Required system packages :

  • debian : apt install python3-rados python3-gdal

The rok4 package is available on :

  • PyPI : pip install rok4
  • GitHub : pip install https://github.com/rok4/core-python/releases/download/<version>/rok4-<version>-py3-none-any.whl

Usage

from rok4.tile_matrix_set import TileMatrixSet

try:
    tms = TileMatrixSet("file:///path/to/tms.json")
except Exception as exc:
    print(exc)

Following environment variables could be used, by module :

  • storage : more details in the module developer documentation
    • ROK4_READING_LRU_CACHE_SIZE : Cache size (0 for no limit)
    • ROK4_READING_LRU_CACHE_TTL : Cache validity time (0 for no limit)
    • ROK4_CEPH_CONFFILE : Ceph configuration file
    • ROK4_CEPH_USERNAME : Ceph cluster user
    • ROK4_CEPH_CLUSTERNAME : Ceph cluster name
    • ROK4_S3_KEY : Key(s) for S3 server(s)
    • ROK4_S3_SECRETKEY : Secret key(s) for S3 server(s)
    • ROK4_S3_URL : URL(s) for S3 server(s)
    • ROK4_SSL_NO_VERIFY : Disable SSL conrols for S3 access (any non empty value)
  • tile_matrix_set :
    • ROK4_TMS_DIRECTORY : Root directory (file or object) for tile matrix sets
  • style :
    • ROK4_STYLES_DIRECTORY : Root directory (file or object) for styles

More examples in the developer documentation

Metadata

Release files for rok4 2.2.3

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

Source distribution (sdist)

Source distribution for rok4 2.2.3
File Size Uploaded
rok4-2.2.3.tar.gz 69.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rok4 2.2.3
File Interpreter ABI Platform
rok4-2.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 124.0 kB

Release files / rok4-2.2.3.tar.gz

Download URL rok4-2.2.3.tar.gz
Size 69.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b30475b114dd3953ea68e886d67c13b2353256fcdbdaf0871be72696f75f1351
BLAKE2b-256 checksum
How to use checksums
44df8f01e41f9006990178c327840e4ea0801b7961c7506c5750bf3207ace784
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / rok4-2.2.3-py3-none-any.whl

Download URL rok4-2.2.3-py3-none-any.whl
Size 54.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
400cf09d8c7bebd38f415455a7a42dd22c520273c53fd6ea08439c41c9cd1d1b
BLAKE2b-256 checksum
How to use checksums
b5879993a51c0040dec91e7e0df82a3237d2756ca416d0d6f91010666a084fa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

2.2.3 This release

2 release files

2.2.0

2 release files

2.1.5

2 release files

2.1.4

2 release files

2.1.3

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.7.1

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.4

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