Skip to content

utils

Utilities to get image data from camptocamp.org.

Functions:

  • get_images –

    Get photos for the given camptocamp image document ids.

Attributes:

Attributes

logger module-attribute

logger = getLogger(__name__)

MEDIA_URL module-attribute

MEDIA_URL = 'https://media.camptocamp.org/c2corg-active'

Base URL to the raw image files.

IMAGE_URL module-attribute

IMAGE_URL = 'https://api.camptocamp.org/images'

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.