open_education_network.open_education_network_models¶
Classes¶
License information for an Open Education Network textbook. |
|
A child subject for an Open Education Network textbook. |
|
A subject entry for an Open Education Network textbook. |
|
A contributor (author, editor, etc.) for an Open Education Network textbook. |
|
A format (eBook, PDF, etc.) for an Open Education Network textbook. |
|
A single textbook record as returned by the Open Education Network API. |
|
A list of Open Education Network textbooks. |
Module Contents¶
- class open_education_network.open_education_network_models.OENLicense(/, **data: Any)¶
Bases:
pydantic.BaseModelLicense 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.BaseModelA child subject for an Open Education Network textbook.
- name: str¶
- class open_education_network.open_education_network_models.OENSubject(/, **data: Any)¶
Bases:
pydantic.BaseModelA 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.BaseModelA 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.BaseModelA 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.BaseModelA 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]¶
- 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.