.. _jgdv.files.bookmarks.bookmark: ============================= jgdv.files.bookmarks.bookmark ============================= .. py:module:: jgdv.files.bookmarks.bookmark Type Aliases ------------ .. autoapisummary:: jgdv.files.bookmarks.bookmark.UrlParseResult Classes ------- .. autoapisummary:: jgdv.files.bookmarks.bookmark.Bookmark Module Contents =============== .. py:data:: UrlParseResult :type: TypeAlias :value: urllib.parse.ParseResult .. _jgdv.files.bookmarks.bookmark.Bookmark: .. py:class:: Bookmark(/, **data) Bases: :py:obj:`pydantic.BaseModel` A Single Bookmark in a collection. .. py:method:: _validate_tags(val) -> .. py:method:: build(line, sep = None) -> :classmethod: Build a bookmark from a line of a bookmark file .. py:method:: clean(subs) -> run tag substitutions on all tags in the bookmark .. py:method:: merge(other) -> Merge two bookmarks' tags together, creating a new bookmark .. py:attribute:: _tag_norm_re :type: ClassVar[jgdv.Rx] .. py:attribute:: _tag_sep :type: ClassVar[str] :value: ' : ' .. py:attribute:: name :type: str :value: 'No Name' .. py:attribute:: tags :type: set[str] .. py:attribute:: url :type: str .. py:property:: url_comps :type: UrlParseResult