Pressbooks¶
Open Metadata Exchange (OME) plugin¶
An OME plugin defines how to import and publish metadata from an Open Education Resources system.
plugin.py provides the class that enables OME to understand Pressbooks Directory metadata.
This plugin defines one or more:
mimetypesso that Pressbooks json data can be stored as enclosures in InterNetNews (INN) articles.newsgroupsso Pressbooks metadata can be published to and subscribed from those INN newsgroups.
The plugin is composed of at least three code files.
plugin.py: Definesmimetypes,newsgroups, and amake_metadata_card()function that translates Pressbooks data into an OME EducationalResource.pressbooks_models.py: Generated by Pydantic tools to make it fast and reliable to import Pressbooks metadata.bulk_import.py: Utilities to convert data directly from the Pressbooks API into OME EducationalResources.
[!NOTE]
Please do NOT edit this line and below because when the docs are rebuilt, these lines will be overwritten by scripts/sync_plugin_docs.py.
MIMETYPES:
application/vnd.pressbooks.book+json
NEWSGROUPS:
{‘ome.pressbooks’: ‘Metadata from Pressbooks Directory open textbooks https://pressbooks.directory’}
server/plugins/pressbooks
├── __init__.py
├── bulk_import.py
├── plugin.py
├── pressbooks_article.eml
├── pressbooks_item.json
├── pressbooks_models.py
├── pressbooks_ome_item.json
├── pressbooks_python_books.json
├── pressbooks_university_books.json
└── README.md
1 directory, 10 files