languages.py

View code on Github

Functions for listing languages for the Scribe-Data CLI.

scribe_data.cli.list.languages.list_languages() None[source]

Generate a table of languages with their ISO-2 codes and Wikidata QIDs.

Returns:
None

A table of all languages with their ISO-2 codes and Wikidata QIDs is printed.

scribe_data.cli.list.languages.list_languages_for_data_type(data_type: str) None[source]

List the available languages for a given data type.

Parameters:
data_typestr

The data type to check for.

Returns:
None

A list of languages for data types is printed to the terminal.