open_education_network.open_education_network_models

Classes

OENLicense

License information for an Open Education Network textbook.

OENChildSubject

A child subject for an Open Education Network textbook.

OENSubject

A subject entry for an Open Education Network textbook.

OENContributor

A contributor (author, editor, etc.) for an Open Education Network textbook.

OENFormat

A format (eBook, PDF, etc.) for an Open Education Network textbook.

OENTextbook

A single textbook record as returned by the Open Education Network API.

OENTextbookList

A list of Open Education Network textbooks.

Module Contents

class open_education_network.open_education_network_models.OENLicense(/, **data: Any)

Bases: pydantic.BaseModel

License information for an Open Education Network textbook.

name: str
abbreviation: str
url: str
class open_education_network.open_education_network_models.OENChildSubject(/, **data: Any)

Bases: pydantic.BaseModel

A child subject for an Open Education Network textbook.

name: str
class open_education_network.open_education_network_models.OENSubject(/, **data: Any)

Bases: pydantic.BaseModel

A subject entry for an Open Education Network textbook.

name: str
child_subject: OENChildSubject
class open_education_network.open_education_network_models.OENContributor(/, **data: Any)

Bases: pydantic.BaseModel

A contributor (author, editor, etc.) for an Open Education Network textbook.

first_name: str
last_name: str
contribution_type: str
property full_name: str

Return the contributor’s full name.

class open_education_network.open_education_network_models.OENFormat(/, **data: Any)

Bases: pydantic.BaseModel

A format (eBook, PDF, etc.) for an Open Education Network textbook.

format: str
url: str
class open_education_network.open_education_network_models.OENTextbook(/, **data: Any)

Bases: pydantic.BaseModel

A single textbook record as returned by the Open Education Network API.

Endpoint: GET https://open.umn.edu/opentextbooks/textbooks.json

id: int
title: str
description: str
url: str
cover_url: str
license: OENLicense
subjects: list[OENSubject]
contributors: list[OENContributor]
formats: list[OENFormat]
property authors: list[str]

Return a list of author names.

property subject_tags: list[str]

Return a flat list of subject and child-subject names.

class open_education_network.open_education_network_models.OENTextbookList

Bases: pydantic.RootModel[list[OENTextbook]]

A list of Open Education Network textbooks.