jgdv.files.bookmarks.collection

Classes

BookmarkCollection

A container of bookmarks,

Module Contents

class jgdv.files.bookmarks.collection.BookmarkCollection(/, **data)[source]

Bases: pydantic.BaseModel

A container of bookmarks, read from a file where each line is a bookmark url with tags.

Parameters:

data (Any)

difference(other) <Unknown>[source]
Parameters:

other (Self)

Return type:

BookmarkCollection

merge_duplicates() <Unknown>[source]
Return type:

None

static read(fpath) <Unknown>[source]

Read a file to build a bookmark collection

Parameters:

fpath (pathlib.Path)

Return type:

BookmarkCollection

update(*values) <Unknown>[source]
Parameters:

values (jgdv.files.bookmarks.bookmark.Bookmark | BookmarkCollection | collections.abc.Iterable)

Return type:

Self

entries: list[jgdv.files.bookmarks.bookmark.Bookmark] = []
ext: str = '.bookmarks'