wikidata.commonsmedia
— Wikimedia Commons#
New in version 0.3.0.
- class wikidata.commonsmedia.File(client: Client, title: str)#
Represent a file on Wikimedia Commons.
- property image_mimetype: str | None#
(
Optional
[str
]) The MIME type of the image. It may beNone
if it’s not an image.
- property image_resolution: Tuple[int, int] | None#
(
Optional
[Tuple
[int
,int
]]) The (width, height) pair of the image. It may beNone
if it’s not an image.