utils
¶
Utilities to get image data from camptocamp.org.
Functions:
-
get_images–Get photos for the given camptocamp image document ids.
Attributes:
-
logger– -
MEDIA_URL–Base URL to the raw image files.
-
IMAGE_URL–Base URL to the image API endpoint.
-
collaborative_lic– -
personal_lic–
Attributes¶
MEDIA_URL
module-attribute
¶
Base URL to the raw image files.
IMAGE_URL
module-attribute
¶
Base URL to the image API endpoint.
collaborative_lic
module-attribute
¶
collaborative_lic = LicenseSchema(
slug="cc-by-sa-3.0",
name="CC BY-SA 3.0",
url="https://creativecommons.org/licenses/by-sa/3.0/",
)
personal_lic
module-attribute
¶
personal_lic = LicenseSchema(
slug="cc-by-nc-nd-3.0",
name="CC BY-NC-ND 3.0",
url="https://creativecommons.org/licenses/by-nc-nd/3.0/",
)
Classes¶
Functions¶
get_images
¶
get_images(image_ids: tuple[int, ...]) -> list[PhotoSchema]
Get photos for the given camptocamp image document ids.