[![PyPI version](https://badge.fury.io/py/metsrw.svg)](https://badge.fury.io/py/metsrw) [![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)
# METS Reader & Writer
By [Artefactual](https://www.artefactual.com/)
METSRW is a library to help with parsing and creating METS files.
It provides an API, and abstracts away the actual creation of the XML.
METSRW was initially created for use in [Archivematica](https://github.com/artefactual/archivematica/) and is managed as part of that project.
You are free to copy, modify, and distribute metsrw with attribution under the terms of the AGPL license.
See the [LICENSE](LICENSE) file for details.
## Installation & Dependencies
METSRW can be installed with pip.
`pip install metsrw`
METSRW has been tested with:
* Python 3.6
* Python 3.7
* Python 3.8
* Python 3.9
## Basic Usage
Read a METS file
mets = metsrw.METSDocument.fromfile('path/to/file') # Reads a file
mets = metsrw.METSDocument.fromstring('<mets document>') # Parses a string
mets = metsrw.METSDocument.fromtree(lxml.ElementTree) # Parses an lxml.Element or lxml.ElementTree
Create a new METS file
mets = metsrw.METSDocument()
## Contributing
METSRW is in early development and welcomes feedback on the API and overall design!
Design goals, use cases, and a proposed API are in the [Github wiki](https://github.com/artefactual-labs/mets-reader-writer/wiki)
Raw data
{
"_id": null,
"home_page": "https://github.com/artefactual-labs/mets-reader-writer/",
"name": "metsrw",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "mets",
"author": "Artefactual",
"author_email": "info@artefactual.com",
"download_url": "https://files.pythonhosted.org/packages/7b/31/3754b10f3f5679c14c71bdc04f6749526ba7dfb80184a7bd00d08b9bc247/metsrw-0.4.0.tar.gz",
"platform": null,
"description": "[![PyPI version](https://badge.fury.io/py/metsrw.svg)](https://badge.fury.io/py/metsrw) [![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\n# METS Reader & Writer\n\nBy [Artefactual](https://www.artefactual.com/)\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/) and is managed as part of that project.\n\nYou are free to copy, modify, and distribute metsrw with attribution under the terms of the AGPL license.\nSee the [LICENSE](LICENSE) file for details.\n\n\n## Installation & Dependencies\n\nMETSRW can be installed with pip.\n\n`pip install metsrw`\n\nMETSRW has been tested with:\n\n* Python 3.6\n* Python 3.7\n* Python 3.8\n* Python 3.9\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('<mets document>') # 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\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\n\n",
"bugtrack_url": null,
"license": "AGPL",
"summary": "Library for dealing with METS files.",
"version": "0.4.0",
"project_urls": {
"Homepage": "https://github.com/artefactual-labs/mets-reader-writer/"
},
"split_keywords": [
"mets"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "110c17b71c49a56dae8e6e27cde328b312bbadc5ac3a9e45da367b1428c8b030",
"md5": "4f8550743920b792766943d81bf609cc",
"sha256": "b2a033869636d3e4ced86c0bd0524d8b6efef505da1d219a55397a7aecad5609"
},
"downloads": -1,
"filename": "metsrw-0.4.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "4f8550743920b792766943d81bf609cc",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.6",
"size": 79778,
"upload_time": "2023-07-17T21:42:15",
"upload_time_iso_8601": "2023-07-17T21:42:15.215797Z",
"url": "https://files.pythonhosted.org/packages/11/0c/17b71c49a56dae8e6e27cde328b312bbadc5ac3a9e45da367b1428c8b030/metsrw-0.4.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7b313754b10f3f5679c14c71bdc04f6749526ba7dfb80184a7bd00d08b9bc247",
"md5": "1af07a9bdce45de4d7873f3a8e8e0dee",
"sha256": "9e40f287f7c2aeb675ede3f0473273540c1b6d73d28bb5b719f77b38c7e3bb37"
},
"downloads": -1,
"filename": "metsrw-0.4.0.tar.gz",
"has_sig": false,
"md5_digest": "1af07a9bdce45de4d7873f3a8e8e0dee",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 73635,
"upload_time": "2023-07-17T21:42:17",
"upload_time_iso_8601": "2023-07-17T21:42:17.298765Z",
"url": "https://files.pythonhosted.org/packages/7b/31/3754b10f3f5679c14c71bdc04f6749526ba7dfb80184a7bd00d08b9bc247/metsrw-0.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-17 21:42:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "artefactual-labs",
"github_project": "mets-reader-writer",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "metsrw"
}