leiap.constants¶
This module contains functions to access some commonly-used constants and their translations
Functions
get_waretypes ([lang]) |
Access the waretypes used in the database |
get_vesselparts ([lang]) |
Access the vessel parts used in the database |
get_talaiotic ([lang]) |
Access Talaiotic period productions |
get_balearic ([lang]) |
Access Balearic period productions |
get_early_roman ([lang]) |
Access Early Roman period productions |
get_late_roman ([lang]) |
Access Late Roman period productions |
get_islamic ([lang]) |
Access Islamic period productions |
get_misc_types ([lang]) |
Access types that we usually include with productions (but might not be officially designated FabricTypeNames |
-
leiap.constants.
get_waretypes
(lang='both')[source]¶ Access the waretypes used in the database
Parameters: lang ({'both', 'eng', 'cat'}) – The language you need for the output Returns: requested_names – A dictionary or list of waretypes. If lang=’both’, return a dictionary of english:catalan names Return type: dict, list
-
leiap.constants.
get_vesselparts
(lang='both')[source]¶ Access the vessel parts used in the database
Parameters: lang ({'both', 'eng', 'cat'}) – The language you need for the output Returns: requested_names – If language is ‘both’, then a dict is returned; otherwise a list Return type: dict, list
-
leiap.constants.
get_talaiotic
(lang='both')[source]¶ Access Talaiotic period productions
Parameters: lang ({'both', 'eng', 'cat'}) – The language you need for the output Returns: productions – Talaiotic period productions. If lang=’both’, return dict, else return a list Return type: dict, list
-
leiap.constants.
get_balearic
(lang='both')[source]¶ Access Balearic period productions
Parameters: lang ({'both', 'eng', 'cat'}) – The language you need for the output Returns: productions – Balearic period productions. If lang=’both’, return dict, else return a list Return type: dict, list
-
leiap.constants.
get_early_roman
(lang='both')[source]¶ Access Early Roman period productions
Parameters: lang ({'both', 'eng', 'cat'}) – The language you need for the output Returns: productions – Early Roman period productions. If lang=’both’, return dict, else return a list Return type: dict, list
-
leiap.constants.
get_late_roman
(lang='both')[source]¶ Access Late Roman period productions
Parameters: lang ({'both', 'eng', 'cat'}) – The language you need for the output Returns: productions – Late Roman period productions. If lang=’both’, return dict, else return a list Return type: dict, list
-
leiap.constants.
get_islamic
(lang='both')[source]¶ Access Islamic period productions
Parameters: lang ({'both', 'eng', 'cat'}) – The language you need for the output Returns: productions – Islamic period productions. If lang=’both’, return dict, else return a list Return type: dict, list
-
leiap.constants.
get_misc_types
(lang='both')[source]¶ Access types that we usually include with productions (but might not be officially designated FabricTypeNames
Parameters: lang ({'both', 'eng', 'cat'}) – The language you need for the output Returns: productions – Islamic period productions. If lang=’both’, return dict, else return a list Return type: dict, list