Skip to main content

Tests

ckanext-iso19115

Export dataset into ISO 19115 XML.

Requirements

Compatibility with core CKAN versions:

CKAN version Compatible?
2.9 yes
2.10 yes

Installation

To install ckanext-iso19115:

  1. Install it into virtualenv:

    pip install ckanext-iso19115
    
  2. Add iso19115 to the ckan.plugins.

Config settings

None at present

# Storage path for pre-compiled schema definition
# (optional, default: somewhere inside system's tempdir).
ckanext.iso19115.misc.cache_dir = /var/data/iso19115_cache

CLI

Clear compiled schema caches:

ckan -c /path/to/ckan.ini iso19115 cache clear

Usage

Customize the way of mapping dataset into ISO 19115 by implementing IIso18115 interface.

from ckanext.iso19115.interfaces import IIso19115

class Iso19115(p.SingletonPlugin):
    p.implements(IIso19115, inherit=True)

    def iso19115_metadata_converter(self, data_dict: dict[str, Any]):
        return Converter(data_dict)

Converter must be defined as a sub-class of ckanext.iso19115.converter.Converter. It already contains some basic logic that can be used as a starting point for extension.

API

iso19115_package_show

Export dataset into ISO 19115 JsonML.

Format can be changed using format parameter of the action. Possible alternatives:

  • xml

iso19115_package_check

Check if the dataset can be rendered as a valid ISO 19115 document

Tests

To run the tests, do:

pytest

License

AGPL

Release files for ckanext-iso19115 0.2.4

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

Source distribution (sdist)

Source distribution for ckanext-iso19115 0.2.4
File Size Uploaded
ckanext_iso19115-0.2.4.tar.gz 378.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ckanext-iso19115 0.2.4
File Interpreter ABI Platform
ckanext_iso19115-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 966.9 kB

Release files / ckanext_iso19115-0.2.4.tar.gz

Download URL ckanext_iso19115-0.2.4.tar.gz
Size 378.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d094d3996c587cefe3d1f4a06ff2b1e334f11ed0ae203b15783df12e7837de6c
BLAKE2b-256 checksum
How to use checksums
f64dbc0601814d97dbc2ed37bde9d4ee79c6bb2ac654dcd582b0b490f640be96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.16

Release files / ckanext_iso19115-0.2.4-py3-none-any.whl

Download URL ckanext_iso19115-0.2.4-py3-none-any.whl
Size 588.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
852e45abc0091c9a1863be3a8c31fae74099c6590af2ffef8ea7beb7913f348e
BLAKE2b-256 checksum
How to use checksums
a1738f9722b4f83ae35106101363d810a628bd1e9648edc112507fb3fc371a0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.16

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.1

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.22

2 release files

0.0.21

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.1

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