service
¶
Classes:
-
WikicommonsService–Service to get photo from
Functions:
-
get_wikicommon_photo_info–Fetch image information from Magnus Toolserver API and return structured data using Pydantic.
Attributes:
Attributes¶
file_names
module-attribute
¶
file_names = [
"Wildhornhuette.jpg",
"Lohner hut SAC.jpg",
"RifugioVallanta.jpg",
"Refuge d'Ambin.jpeg",
]
Classes¶
WikicommonsService
¶
WikicommonsService(
request_url: str = "https://magnus-toolserver.toolforge.org/commonsapi.php",
max_dimension: int = 3600,
)
Service to get photo from Wikimedia Commons.
Note
This is only used to get photo information, not to get huts!
Methods:
Attributes:
Functions¶
get_wikicommon_photo_info
¶
get_wikicommon_photo_info(
filename: str,
api_url: str = "https://magnus-toolserver.toolforge.org/commonsapi.php",
max_dimension: int = 3000,
) -> PhotoSchema
Fetch image information from Magnus Toolserver API and return structured data using Pydantic.