archivebox.core.viewsο
Module Contentsο
Classesο
Serve snapshots by the new URL scheme: / |
|
Serve snapshot directory contents on |
|
Serve snapshot directory contents on a one-domain replay path. |
|
Serve responses from the most recent snapshot when using |
|
Serve original-domain replay content on a one-domain replay path. |
|
A Django view that renders plain text βOKβ for service discovery tools |
Functionsο
Simple JSON endpoint for live progress status - used by admin progress monitor. |
|
Determine where a config value comes from. |
|
Dataο
APIο
- archivebox.core.views.ABX_PLUGINS_GITHUB_BASE_URL[source]ο
βhttps://github.com/ArchiveBox/abx-plugins/tree/main/abx_plugins/plugins/β
- archivebox.core.views._files_index_target(snapshot: archivebox.core.models.Snapshot, archivefile: str | None) str[source]ο
- archivebox.core.views._find_snapshot_by_ref(snapshot_ref: str) archivebox.core.models.Snapshot | None[source]ο
- archivebox.core.views._admin_login_redirect_or_forbidden(request: django.http.HttpRequest)[source]ο
- class archivebox.core.views.SnapshotView[source]ο
Bases:
django.views.View
- class archivebox.core.views.SnapshotPathView[source]ο
Bases:
django.views.ViewServe snapshots by the new URL scheme: /
/ / / /β¦
- archivebox.core.views._snapshot_sort_key(match_path: str, cache: dict[str, float]) tuple[float, str][source]ο
- archivebox.core.views._latest_response_match(domain: str, rel_path: str) tuple[pathlib.Path, pathlib.Path] | None[source]ο
- archivebox.core.views._latest_snapshot_for_domain(domain: str) archivebox.core.models.Snapshot | None[source]ο
- archivebox.core.views._original_request_url(domain: str, path: str = '', query_string: str = '') str[source]ο
- archivebox.core.views._serve_responses_path(request, responses_root: pathlib.Path, rel_path: str, show_indexes: bool)[source]ο
- archivebox.core.views._serve_snapshot_replay(request: django.http.HttpRequest, snapshot: archivebox.core.models.Snapshot, path: str = '')[source]ο
- archivebox.core.views._serve_original_domain_replay(request: django.http.HttpRequest, domain: str, path: str = '')[source]ο
- class archivebox.core.views.SnapshotHostView[source]ο
Bases:
django.views.ViewServe snapshot directory contents on
.<listen_host>/ .
- class archivebox.core.views.SnapshotReplayView[source]ο
Bases:
django.views.ViewServe snapshot directory contents on a one-domain replay path.
- class archivebox.core.views.OriginalDomainHostView[source]ο
Bases:
django.views.ViewServe responses from the most recent snapshot when using
.<listen_host>/ .
- class archivebox.core.views.OriginalDomainReplayView[source]ο
Bases:
django.views.ViewServe original-domain replay content on a one-domain replay path.
- class archivebox.core.views.AddView[source]ο
Bases:
django.contrib.auth.mixins.UserPassesTestMixin,django.views.generic.FormView- _get_custom_config_overrides(form: archivebox.core.forms.AddLinkForm) dict[source]ο
- _create_crawl_from_form(form, *, created_by_id=None) archivebox.crawls.models.Crawl[source]ο
- class archivebox.core.views.HealthCheckView[source]ο
Bases:
django.views.ViewA Django view that renders plain text βOKβ for service discovery tools
- archivebox.core.views.live_progress_view(request)[source]ο
Simple JSON endpoint for live progress status - used by admin progress monitor.
- archivebox.core.views.find_config_source(key: str, merged_config: dict) str[source]ο
Determine where a config value comes from.