{"id":46416962,"url":"https://github.com/viaacode/mtd-transformer","last_synced_at":"2026-03-05T14:18:58.775Z","repository":{"id":43841245,"uuid":"218303268","full_name":"viaacode/mtd-transformer","owner":"viaacode","description":"Microservice to perform XSLT metadata transformations.","archived":false,"fork":false,"pushed_at":"2024-03-20T15:48:48.000Z","size":5437,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-04-24T05:40:50.733Z","etag":null,"topics":["chassis-py","python","saxon","xslt"],"latest_commit_sha":null,"homepage":"","language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/viaacode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-29T14:12:23.000Z","updated_at":"2023-02-17T08:38:26.000Z","dependencies_parsed_at":"2022-09-25T01:40:21.616Z","dependency_job_id":null,"html_url":"https://github.com/viaacode/mtd-transformer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/viaacode/mtd-transformer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viaacode%2Fmtd-transformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viaacode%2Fmtd-transformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viaacode%2Fmtd-transformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viaacode%2Fmtd-transformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viaacode","download_url":"https://codeload.github.com/viaacode/mtd-transformer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viaacode%2Fmtd-transformer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30130037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T12:40:50.676Z","status":"ssl_error","status_checked_at":"2026-03-05T12:39:32.209Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chassis-py","python","saxon","xslt"],"created_at":"2026-03-05T14:18:57.954Z","updated_at":"2026-03-05T14:18:58.768Z","avatar_url":"https://github.com/viaacode.png","language":"XSLT","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Metadate transformation service\n\nTransforms given metadata to a new format based on a chosen transformation.\n\n\nFor XML-to-XML transformations Saxon HE is used under the hood. Saxon HE is (c) Michael H. Kay and released under the Mozilla MPL 1.0 (http://www.mozilla.org/MPL/1.0/)\n\n## Prerequisites\n\n- Python 3.8\n- Java (for running Saxon HE)\n\n## Installation\n\n1. Clone or download the repository\n2. `cd` into the directory\n3. Create a virtual environment `python -m venv .`\n4. Activate the environment `source bin/activate` on Linux or `Scripts/activate` on Windows.\n5. Install dependencies `pip install -r requirements.txt`\n\n## Usage\n\n### CLI\n\nUsing the CLI you can transform a file and list the available transformations.\n\nOutput of `python cli.py --help`:\n\n```\nUsage: cli.py [OPTIONS] COMMAND [ARGS]...\n\nCoole CLI voor metadata transformaties\n\nOptions:\n-v, --verbose\n--help         Show this message and exit.\n\nCommands:\nlist       List all available transformations.\ntransform  Transforms an input file based on a given transformation.\nvalidate\n```\n#### Example\n\n`python cli.py transform --help` will give more information about the parameters.\n\n`python cli.py transform` will prompt for an input file and a transformation.\n\n`python cli.py transform -i C:\\test.xml -t OR-rf5kf25` will transform `C:\\test.xml` using the transformation specified in `./resources/OR-rf5kf25` and output the result to `stdout`\n\n`python cli.py transform -i C:\\test.xml -t OR-rf5kf25 -o C:\\output\\test.xml`  will transform `C:\\test.xml` using the transformation specified in `./resources/OR-rf5kf25` and output the result to `C:\\output\\test.xml`\n\n### API\n\nRun `python app.py` to start the service. You will be using the Flask development server.\n\n#### Example\n\nTo transform an XML-file, send a `POST` request to `http://0.0.0.0:5000/transform?transformation=OR-rf5kf25` with the xml in the body.\nAdd `application/xml` to the `Content-Type` header.\n\nHTTP-call:\n```HTTP\nPOST /v1/transform?transformation=OR-rf5kf25 HTTP/1.1\nHost: 0.0.0.0:5000\nContent-Type: application/xml\n\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?\u003e\n\u003cns8:metadataUpdatedEvent xmlns:ns6=\"http://www.vrt.be/schema/mig/messaging/viaa\"\n    xmlns:process=\"http://www.vrt.be/schema/mig/messaging/process\"\n    xmlns:ns8=\"http://www.vrt.be/mig/viaa\"\n    xmlns:ns7=\"http://www.vrt.be/mig/viaa/api\"\n    xmlns:ns9=\"http://www.vrt.be/schema/mig/transfer/agentcommand\"\n    xmlns:mam=\"http://www.vrt.be/schema/mig/messaging/mam\"\n    xmlns:ebu=\"urn:ebu:metadata-schema:ebuCore_2012\"\n    xmlns:mig=\"http://www.vrt.be/schema/mig/messaging\"\n    xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\u003e\n    \u003cns8:timestamp\u003e2019-11-28T11:44:00.327+01:00\u003c/ns8:timestamp\u003e\n    \u003cns8:metadata\u003e\n        \u003cebu:title\u003e\n            \u003cdc:title\u003etitel test viaa item\u003c/dc:title\u003e\n        \u003c/ebu:title\u003e\n    \u003c/ns8:metadata\u003e\n\u003c/ns8:metadataUpdatedEvent\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviaacode%2Fmtd-transformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviaacode%2Fmtd-transformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviaacode%2Fmtd-transformer/lists"}