JBrowser Source Docs
You are reading the documentation for JBrowser 1.5.2. The newest release is 1.5.4. Go to the latest documentation

jbrowser.services.archive

Generated from the source code of JBrowser 1.5.2.

jbrowser/services/archive.py · 166 lines

The Archive: cards closed in the last 48 hours, ready to be reopened.

Entries keep the card's address, title, space and full back/forward history. They expire after 48 hours, are never recorded for incognito spaces, and are removed together with the matching browsing history (clearing history by time range, by site or all at once).

Constants#

Name Value
RETENTION_S 48 * 3600
MAX_ENTRIES 300

ArchiveEntry#

class ArchiveEntrysource
ArchiveEntry(url: str, title: str='', space_id: str='', space_name: str='', space_icon: str='', closed_at: float | None=None, width: float=0.5, pinned: bool=False, history: str='', id: str | None=None)

ArchiveEntry.host#

property hostsource

ArchiveEntry.history_bytes#

history_bytes() -> bytes | Nonesource

ArchiveEntry.to_json#

to_json() -> dictsource

ArchiveService#

class ArchiveService(QObject)source
ArchiveService(path: Path, parent: QObject | None=None)

Signals

Signal Arguments
changed ()

ArchiveService.entries#

entries() -> list[ArchiveEntry]source

Newest first.

ArchiveService.get#

get(entry_id: str) -> ArchiveEntry | Nonesource

ArchiveService.add_closed#

add_closed(data: dict) -> ArchiveEntrysource

ArchiveService.take#

take(entry_id: str) -> ArchiveEntry | Nonesource

Remove and return an entry (used when it is reopened).

ArchiveService.take_latest#

take_latest(space_ids: set[str] | None=None) -> ArchiveEntry | Nonesource

ArchiveService.remove#

remove(entry_id: str) -> Nonesource

ArchiveService.clear#

clear() -> Nonesource

ArchiveService.prune#

prune() -> Nonesource

ArchiveService.purge_range#

purge_range(start: float | None, end: float | None, space_id: str | None) -> Nonesource

ArchiveService.purge_host#

purge_host(host: str) -> Nonesource

ArchiveService.purge_urls#

purge_urls(urls: list[str]) -> Nonesource

ArchiveService.purge_space#

purge_space(space_id: str) -> Nonesource

ArchiveService.save_now#

save_now() -> Nonesource