-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
534 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Changes here will be overwritten by Copier | ||
project_slug=irdi | ||
package_dir=cmem_plugin_irdi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
# Changes here will be overwritten by Copier | ||
_commit: v6.0.1 | ||
_commit: v7.0.0 | ||
_src_path: gh:eccenca/cmem-plugin-template | ||
author_mail: robert.klose@eccenca.com | ||
author_name: Robert Klose | ||
github_page: '' | ||
project_description: Create unique IRDIs | ||
author_mail: cmempy-developer@eccenca.com | ||
author_name: eccenca GmbH | ||
github_page: https://gitlab.eccenca.com/elds/plugins/cmem-plugin-irdi | ||
project_description: Create unique International Registration Data Identifier (IRDI). | ||
project_slug: irdi | ||
pypi: false | ||
project_type: plugin | ||
pypi: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# https://taskfile.dev | ||
--- | ||
version: '3' | ||
|
||
tasks: | ||
|
||
install: | ||
desc: Install plugin package in Corporate Memory | ||
cmds: | ||
- task build | ||
- poetry run cmemc admin workspace python install dist/cmem_plugin_irdi*.tar.gz | ||
- poetry run cmemc admin workspace python list-plugins | ||
|
||
uninstall: | ||
desc: Unnstall plugin package in Corporate Memory | ||
cmds: | ||
- task build | ||
- poetry run cmemc admin workspace python uninstall cmem-plugin-irdi | ||
- poetry run cmemc admin workspace python list-plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,33 @@ | ||
# cmem-plugin-irdi | ||
|
||
Create unique [ECLASS](https://eclass.eu/support/technical-specification/structure-and-elements/irdi) IRDIs | ||
Create unique International Registration Data Identifier (IRDI). | ||
|
||
[![eccenca Corporate Memory][cmem-shield]][cmem-link] | ||
|
||
This is a plugin for [eccenca](https://eccenca.com) [Corporate Memory](https://documentation.eccenca.com). | ||
|
||
You can install it with the [cmemc](https://eccenca.com/go/cmemc) command line | ||
clients like this: | ||
This is a plugin for [eccenca](https://eccenca.com) [Corporate Memory](https://documentation.eccenca.com). You can install it with the [cmemc](https://eccenca.com/go/cmemc) command line clients like this: | ||
|
||
``` | ||
cmemc admin workspace python install cmem-plugin-irdi | ||
``` | ||
[![workflow](https://gitlab.eccenca.com/elds/plugins/cmem-plugin-irdi/actions/workflows/check.yml/badge.svg)](https://gitlab.eccenca.com/elds/plugins/cmem-plugin-irdi/actions) [![pypi version](https://img.shields.io/pypi/v/cmem-plugin-irdi)](https://pypi.org/project/cmem-plugin-irdi) [![license](https://img.shields.io/pypi/l/cmem-plugin-irdi)](https://pypi.org/project/cmem-plugin-irdi) | ||
[![poetry][poetry-shield]][poetry-link] [![ruff][ruff-shield]][ruff-link] [![mypy][mypy-shield]][mypy-link] [![copier][copier-shield]][copier] | ||
|
||
[cmem-link]: https://documentation.eccenca.com | ||
[cmem-shield]: https://img.shields.io/endpoint?url=https://dev.documentation.eccenca.com/badge.json | ||
[poetry-link]: https://python-poetry.org/ | ||
[poetry-shield]: https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json | ||
[ruff-link]: https://docs.astral.sh/ruff/ | ||
[ruff-shield]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json&label=Code%20Style | ||
[mypy-link]: https://mypy-lang.org/ | ||
[mypy-shield]: https://www.mypy-lang.org/static/mypy_badge.svg | ||
[copier]: https://copier.readthedocs.io/ | ||
[copier-shield]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-purple.json | ||
|
||
## Plugin Usage | ||
|
||
- All fields of the IRDI are configurable, minus `Item Code`, which is created by the plugin | ||
- Created IRDIs are unique per configuration | ||
- Specify a graph that stores the state of `Item Codes` | ||
- Input and output paths are configurable | ||
- if no input path is configured, values are read from the URIs of the input (Transformation Input) | ||
- if no input path is configured, values are read from the URIs of the input (Transformation Input) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"""irdi - main package""" | ||
"""cmem-plugin-irdi""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Create unique item codes""" | ||
|
||
from pathlib import Path | ||
|
||
from cmem.cmempy.dp.proxy.graph import post_streamed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""IRDI creation Plugin""" | ||
|
||
import re | ||
from typing import Sequence # noqa: UP035 | ||
|
||
|
Oops, something went wrong.