{"id":42943412,"url":"https://github.com/cms-l1-globaltrigger/tm-diff","last_synced_at":"2026-01-30T20:11:54.812Z","repository":{"id":45635185,"uuid":"168319307","full_name":"cms-l1-globaltrigger/tm-diff","owner":"cms-l1-globaltrigger","description":"Convenient data comparison for XML trigger menus","archived":false,"fork":false,"pushed_at":"2025-12-19T14:53:36.000Z","size":68,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-22T05:59:34.615Z","etag":null,"topics":["cern","cms-l1-dpg","lhc","scientific"],"latest_commit_sha":null,"homepage":"","language":"Python","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/cms-l1-globaltrigger.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-01-30T09:53:13.000Z","updated_at":"2025-12-19T14:52:43.000Z","dependencies_parsed_at":"2023-01-21T19:29:13.388Z","dependency_job_id":null,"html_url":"https://github.com/cms-l1-globaltrigger/tm-diff","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/cms-l1-globaltrigger/tm-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cms-l1-globaltrigger%2Ftm-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cms-l1-globaltrigger%2Ftm-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cms-l1-globaltrigger%2Ftm-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cms-l1-globaltrigger%2Ftm-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cms-l1-globaltrigger","download_url":"https://codeload.github.com/cms-l1-globaltrigger/tm-diff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cms-l1-globaltrigger%2Ftm-diff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28918235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T19:10:10.838Z","status":"ssl_error","status_checked_at":"2026-01-30T19:06:40.573Z","response_time":66,"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":["cern","cms-l1-dpg","lhc","scientific"],"created_at":"2026-01-30T20:11:54.709Z","updated_at":"2026-01-30T20:11:54.796Z","avatar_url":"https://github.com/cms-l1-globaltrigger.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"XML Menu Diff\n=============\n\n## Install\n\n```bash\npip install --extra-index-url https://globaltrigger.web.cern.ch/pypi tm-diff\n```\n\n## Basic usage\n\nCompare the content of two XML trigger menus.\n\n```bash\ntm-diff [-f|--format \u003cformat\u003e] [-s|--skip \u003cmode\u003e] [--sort \u003ckey\u003e]\n        [-d|--dump] [-o \u003cfile\u003e]\n        \u003cfile1\u003e \u003cfile2\u003e\n```\n\n### Format\n\nUse flag `-f|--format \u003cformat\u003e` to select diff output format. Options are:\n\n * `unified` for unified diff format\n * `context` for contextual diff format\n * `html` for a complete diff in as HTML file\n * `report` to be copy-pasted into TWiki reports\n\nDefault format is `unified`.\n\n**Example:**\n\n```bash\ntm-diff ... -fhtml -o diff.html  # dumps diff as HTML table to file\n```\n\n### Skip\n\nUse flag `-s|--skip \u003cmode\u003e` to ignore certain attributes. Options are\n\n * `module` to skip implementation details (attributes `uuid_firmware`, `n_modules`, `module_id`, `module_index`)\n * `comment` to skip comments (attribute `comment`)\n * `labels` to skip algorithm labels (attribute `labels`)\n\n**Example:**\n\n```bash\ntm-diff ... -smodule -scomment  # ignores module_is/index and any comments\n```\n\n### Sort\n\nUse flag `--sort \u003ckey\u003e` to sort algorithms by attribute. Options are\n\n * `index` to sort by algorithm index\n * `name` to sort by algorithm name\n * `expression` to sort by algorithm expression\n\nDefault sort kay is `index`.\n\n### Dump\n\nUse flag `-d|--dump` to dump the raw text used to diff the menu contents. This\noption will create two text files with the menu names at the current working location.\n\n**Example:**\n\n```bash\ntm-diff foo.xml bar.xml -d  # dumps raw text to foo.xml.txt bar.xml.txt\n```\n\n### Output\n\nUse flag `-o \u003cfile\u003e` to write the output to a file.\n\n**Example:**\n\n```bash\ntm-diff foo.xml bar.xml -o diff.txt  # write output to file\n```\n\nThis is equivalent to:\n\n```bash\ntm-diff foo.xml bar.xml \u003e diff.txt  # pipe stdout to file\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcms-l1-globaltrigger%2Ftm-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcms-l1-globaltrigger%2Ftm-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcms-l1-globaltrigger%2Ftm-diff/lists"}