Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext_iso19115-0.2.3.tar.gz (377.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ckanext_iso19115-0.2.3-py3-none-any.whl (587.6 kB view details)

Uploaded Python 3

File details

Details for the file ckanext_iso19115-0.2.3.tar.gz.

File metadata

  • Download URL: ckanext_iso19115-0.2.3.tar.gz
  • Upload date:
  • Size: 377.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for ckanext_iso19115-0.2.3.tar.gz
Algorithm Hash digest
SHA256 96c3b7a3358cc378abe02c012b334ccee89bff0c252f77909aed10faccb8b524
MD5 e4549dcac02208dad32a6e786f66521b
BLAKE2b-256 b2f69dbfebabe8de7a35fb6020ec4968c2786b3a23db8e4902f642e499f792fe

See more details on using hashes here.

File details

Details for the file ckanext_iso19115-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_iso19115-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c24000aebab0854cfc1fa9ced0f03e358534180616d7cace26d9aff2ea9ac7c9
MD5 fa5f2303e80d9d2241225afe3b5992d5
BLAKE2b-256 6a8a49eccacd67b29b9dfab64c50e19f369f8b480163f1e2e042f9a4743bd548

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page