Name | ckanext-iso19115 JSON |
Version |
0.2.1
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2025-01-08 15:28:07 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | AGPL |
keywords |
ckan
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
|
[](https://github.com/DataShades/ckanext-iso19115/actions)
# 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:
```sh
pip install ckanext-iso19115
```
1. Add `iso19115` to the `ckan.plugins`.
## Config settings
None at present
```ini
# Storage path for pre-compiled schema definition
# (optional, default: somewhere inside system's tempdir).
ckanext.iso19115.misc.cache_dir = /var/data/iso19115_cache
```
## Usage
Customize the way of mapping dataset into ISO 19115 by implementing `IIso18115` interface.
```python
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](https://www.gnu.org/licenses/agpl-3.0.en.html)
Raw data
{
"_id": null,
"home_page": null,
"name": "ckanext-iso19115",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "DataShades <datashades@linkdigital.com.au>",
"keywords": "CKAN",
"author": null,
"author_email": "DataShades <datashades@linkdigital.com.au>, Sergey Motornyuk <sergey.motornyuk@linkdigital.com.au>",
"download_url": "https://files.pythonhosted.org/packages/52/82/f8289a112b1be53b241a3995c19b1223bf3e9d1a605b700744507bcd1b24/ckanext_iso19115-0.2.1.tar.gz",
"platform": null,
"description": "[](https://github.com/DataShades/ckanext-iso19115/actions)\n\n# ckanext-iso19115\n\nExport dataset into ISO 19115 XML.\n\n\n## Requirements\n\nCompatibility with core CKAN versions:\n\n| CKAN version | Compatible? |\n|--------------|-------------|\n| 2.9 | yes |\n| 2.10 | yes |\n\n\n## Installation\n\nTo install ckanext-iso19115:\n\n1. Install it into virtualenv:\n ```sh\n pip install ckanext-iso19115\n ```\n\n1. Add `iso19115` to the `ckan.plugins`.\n\n## Config settings\n\nNone at present\n\n```ini\n# Storage path for pre-compiled schema definition\n# (optional, default: somewhere inside system's tempdir).\nckanext.iso19115.misc.cache_dir = /var/data/iso19115_cache\n```\n\n## Usage\n\nCustomize the way of mapping dataset into ISO 19115 by implementing `IIso18115` interface.\n\n```python\nfrom ckanext.iso19115.interfaces import IIso19115\n\nclass Iso19115(p.SingletonPlugin):\n p.implements(IIso19115, inherit=True)\n\n def iso19115_metadata_converter(self, data_dict: dict[str, Any]):\n return Converter(data_dict)\n```\n\n`Converter` must be defined as a sub-class of\n`ckanext.iso19115.converter.Converter`. It already contains some basic logic\nthat can be used as a starting point for extension.\n\n## API\n\n### `iso19115_package_show`\n\nExport dataset into ISO 19115 JsonML.\n\nFormat can be changed using `format` parameter of the action. Possible alternatives:\n\n* xml\n\n### `iso19115_package_check`\n\nCheck if the dataset can be rendered as a valid ISO 19115 document\n\n## Tests\n\nTo run the tests, do:\n\n pytest\n\n\n\n## License\n\n[AGPL](https://www.gnu.org/licenses/agpl-3.0.en.html)\n",
"bugtrack_url": null,
"license": "AGPL",
"summary": null,
"version": "0.2.1",
"project_urls": {
"Homepage": "https://github.com/DataShades/ckanext-iso19115"
},
"split_keywords": [
"ckan"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "33d624ed0b0b69bf540a7e5e70a5fa8f95fa20c8d7c774fb75456b9d36336615",
"md5": "33141c15783c800e7a9156248beeb851",
"sha256": "20f2ecfde569e5f16e536c40aa19b2186c5f88caf78216c016cae2654280cb98"
},
"downloads": -1,
"filename": "ckanext_iso19115-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "33141c15783c800e7a9156248beeb851",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 587064,
"upload_time": "2025-01-08T15:28:02",
"upload_time_iso_8601": "2025-01-08T15:28:02.498136Z",
"url": "https://files.pythonhosted.org/packages/33/d6/24ed0b0b69bf540a7e5e70a5fa8f95fa20c8d7c774fb75456b9d36336615/ckanext_iso19115-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5282f8289a112b1be53b241a3995c19b1223bf3e9d1a605b700744507bcd1b24",
"md5": "c8993ceb69f55205a9e5d7b93e223b38",
"sha256": "8606e33632aa41628ab4bacea2197f6a0fc9011c4678d55383cdda92370da7b8"
},
"downloads": -1,
"filename": "ckanext_iso19115-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "c8993ceb69f55205a9e5d7b93e223b38",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 376943,
"upload_time": "2025-01-08T15:28:07",
"upload_time_iso_8601": "2025-01-08T15:28:07.564187Z",
"url": "https://files.pythonhosted.org/packages/52/82/f8289a112b1be53b241a3995c19b1223bf3e9d1a605b700744507bcd1b24/ckanext_iso19115-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-08 15:28:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "DataShades",
"github_project": "ckanext-iso19115",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"requirements": [],
"lcname": "ckanext-iso19115"
}