open_education_network.open_education_network_models

Attributes

here

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 = None
abbreviation: str = None
url: str = None
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 = None
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 = None
child_subject: OENChildSubject = None
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 = None
last_name: str = None
contribution_type: str = None
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 = None
url: str = None
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 = None
title: str = None
description: str = None
url: str = None
cover_url: str = None
license: OENLicense = None
subjects: list[OENSubject] = None
contributors: list[OENContributor] = None
formats: list[OENFormat] = None
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.

open_education_network.open_education_network_models.here