Add license#
- metacatalog.api.add_license(session: Session, short_title: str, title: str, **kwargs) License #
Add a new License record to the database.
- Parameters:
session (sqlalchemy.Session) – SQLAlchemy session connected to the database.
short_title (str) – Short title of the License, max 40 letters.
title (str) – Full title of the License.
summary (str) – Gives a short summary of the key points for the given license.
full_text (str) – Full legal code of the license, if available.
link (str) – Link to an online resource of the license.
by_attribution (bool) – Does the license require author attribution on distribution? Defaults to True.
share_alike (bool) – Does the license require redistributions to be licensed under the same license? Defaults to True.
commercial_use (bool) – Does the license permit commercial use of the resource? Defaults to True
- Returns:
license – License instance of the added license entity.
- Return type:
metacatalog.License