Changeset View
Changeset View
Standalone View
Standalone View
swh/web/common/identifiers.py
# Copyright (C) 2020-2021 The Software Heritage developers | # Copyright (C) 2020-2021 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU Affero General Public License version 3, or any later version | # License: GNU Affero General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from typing import Any, Dict, Iterable, List, Optional | from typing import Any, Dict, Iterable, List, Optional | ||||
from urllib.parse import quote, unquote | from urllib.parse import quote, unquote | ||||
from typing_extensions import TypedDict | from typing_extensions import TypedDict | ||||
from django.http import QueryDict | from django.http import QueryDict | ||||
from swh.model.exceptions import ValidationError | from swh.model.exceptions import ValidationError | ||||
from swh.model.hashutil import hash_to_bytes, hash_to_hex | from swh.model.hashutil import hash_to_bytes, hash_to_hex | ||||
from swh.model.identifiers import ObjectType, QualifiedSWHID | from swh.model.swhids import ObjectType, QualifiedSWHID | ||||
from swh.web.common import archive | from swh.web.common import archive | ||||
from swh.web.common.exc import BadInputExc | from swh.web.common.exc import BadInputExc | ||||
from swh.web.common.typing import ( | from swh.web.common.typing import ( | ||||
QueryParameters, | QueryParameters, | ||||
SnapshotContext, | SnapshotContext, | ||||
SWHIDContext, | SWHIDContext, | ||||
SWHIDInfo, | SWHIDInfo, | ||||
SWHObjectInfo, | SWHObjectInfo, | ||||
▲ Show 20 Lines • Show All 365 Lines • Show Last 20 Lines |