archivebox.core.tag_utils
Module Contents
Functions
Data
API
- archivebox.core.tag_utils.TAG_SORT_CHOICES[source]
((‘name_asc’, ‘Name A-Z’), (‘name_desc’, ‘Name Z-A’), (‘created_desc’, ‘Created newest’), (‘created_…
- archivebox.core.tag_utils.TAG_HAS_SNAPSHOTS_CHOICES[source]
((‘all’, ‘All’), (‘yes’, ‘Has snapshots’), (‘no’, ‘No snapshots’))
- archivebox.core.tag_utils.get_matching_tags(query: str = '', sort: str = 'created_desc', created_by: str = '', year: str = '', has_snapshots: str = 'all') django.db.models.QuerySet[archivebox.core.models.Tag][source]
- archivebox.core.tag_utils.get_tag_by_ref(tag_ref: str | int) archivebox.core.models.Tag[source]
- archivebox.core.tag_utils.get_or_create_tag(name: str, created_by: django.contrib.auth.models.User | None = None) tuple[archivebox.core.models.Tag, bool][source]
- archivebox.core.tag_utils.rename_tag(tag: archivebox.core.models.Tag, name: str) archivebox.core.models.Tag[source]
- archivebox.core.tag_utils.delete_tag(tag: archivebox.core.models.Tag) tuple[int, dict[str, int]][source]
- archivebox.core.tag_utils.export_tag_urls(tag: archivebox.core.models.Tag) str[source]
- archivebox.core.tag_utils.export_tag_snapshots_jsonl(tag: archivebox.core.models.Tag) str[source]
- archivebox.core.tag_utils._display_snapshot_title(snapshot: archivebox.core.models.Snapshot) str[source]
- archivebox.core.tag_utils._build_snapshot_preview(snapshot: archivebox.core.models.Snapshot, request: django.http.HttpRequest | None = None) dict[str, Any][source]
- archivebox.core.tag_utils._build_snapshot_preview_map(tags: list[archivebox.core.models.Tag], request: django.http.HttpRequest | None = None, preview_limit: int = TAG_SNAPSHOT_PREVIEW_LIMIT) dict[int, list[dict[str, Any]]][source]
- archivebox.core.tag_utils.build_tag_card(tag: archivebox.core.models.Tag, snapshot_previews: list[dict[str, Any]] | None = None) dict[str, Any][source]
- archivebox.core.tag_utils.build_tag_cards(query: str = '', request: django.http.HttpRequest | None = None, limit: int | None = None, preview_limit: int = TAG_SNAPSHOT_PREVIEW_LIMIT, sort: str = 'created_desc', created_by: str = '', year: str = '', has_snapshots: str = 'all') list[dict[str, Any]][source]