{"id":20821445,"url":"https://github.com/artefactual-labs/mets-reader-writer","last_synced_at":"2025-10-12T16:58:37.694Z","repository":{"id":2899772,"uuid":"42131415","full_name":"artefactual-labs/mets-reader-writer","owner":"artefactual-labs","description":"Library to parse and create METS files, especially for Archivematica.","archived":false,"fork":false,"pushed_at":"2025-03-10T14:55:44.000Z","size":841,"stargazers_count":21,"open_issues_count":9,"forks_count":13,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-30T19:05:47.459Z","etag":null,"topics":["archivematica","mets","premis"],"latest_commit_sha":null,"homepage":"https://mets-reader-writer.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/artefactual-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2015-09-08T18:32:19.000Z","updated_at":"2025-03-10T14:55:46.000Z","dependencies_parsed_at":"2023-12-08T15:16:17.875Z","dependency_job_id":"ab44261a-7edf-4806-9ff5-279d21fa55e2","html_url":"https://github.com/artefactual-labs/mets-reader-writer","commit_stats":{"total_commits":221,"total_committers":12,"mean_commits":"18.416666666666668","dds":0.6832579185520362,"last_synced_commit":"9039834b0aadff7cd776f7bd59e05b35f3d227d9"},"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artefactual-labs%2Fmets-reader-writer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artefactual-labs%2Fmets-reader-writer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artefactual-labs%2Fmets-reader-writer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artefactual-labs%2Fmets-reader-writer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artefactual-labs","download_url":"https://codeload.github.com/artefactual-labs/mets-reader-writer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543591,"owners_count":20955865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["archivematica","mets","premis"],"created_at":"2024-11-17T22:12:14.511Z","updated_at":"2025-10-12T16:58:37.636Z","avatar_url":"https://github.com/artefactual-labs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# METS Reader \u0026 Writer\n\nBy [Artefactual](https://www.artefactual.com/)\n\n[![PyPI version](https://badge.fury.io/py/metsrw.svg)](https://badge.fury.io/py/metsrw)\n[![GitHub CI](https://github.com/artefactual-labs/mets-reader-writer/actions/workflows/test.yml/badge.svg)](https://github.com/artefactual-labs/mets-reader-writer/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/artefactual-labs/mets-reader-writer/branch/master/graph/badge.svg?token=1cXYbNlgJr)](https://codecov.io/gh/artefactual-labs/mets-reader-writer)\n\nMETSRW is a library to help with parsing and creating METS files.\nIt provides an API, and abstracts away the actual creation of the XML.\nMETSRW was initially created for use in [Archivematica](https://github.com/artefactual/archivematica/)\nand is managed as part of that project.\n\nYou are free to copy, modify, and distribute metsrw with attribution under the\nterms of the AGPL license. See the [LICENSE](LICENSE) file for details.\n\n## Installation \u0026 Dependencies\n\nMETSRW can be installed with pip.\n\n`pip install metsrw`\n\nMETSRW is tested with the all the [supported versions](https://devguide.python.org/versions/#supported-versions)\nof Python.\n\n## Basic Usage\n\nRead a METS file\n\n    mets = metsrw.METSDocument.fromfile('path/to/file')  # Reads a file\n    mets = metsrw.METSDocument.fromstring('\u003cmets document\u003e')  # Parses a string\n    mets = metsrw.METSDocument.fromtree(lxml.ElementTree)  # Parses an lxml.Element or lxml.ElementTree\n\nCreate a new METS file\n\n    mets = metsrw.METSDocument()\n\n## Contributing\n\nMETSRW is in early development and welcomes feedback on the API and overall design!\nDesign goals, use cases, and a proposed API are in the [Github wiki](https://github.com/artefactual-labs/mets-reader-writer/wiki)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartefactual-labs%2Fmets-reader-writer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartefactual-labs%2Fmets-reader-writer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartefactual-labs%2Fmets-reader-writer/lists"}