Skip to content

Types reference

_pignio.ItemDict

Bases: MetaDict

Source code in _pignio.py
Python
class ItemDict(MetaDict, total=False):
    id: str
    title: str
    description: str
    datetime: str
    link: str
    image: str
    video: str
    model: str
    doc: str
    langs: list[str]
    text: str
    alttext: str
    systags: list[str]
    status: Literal["public", "silent"]
    type: str

_pignio.CollectionDict

Bases: MetaDict

Source code in _pignio.py
Python
class CollectionDict(MetaDict, total=False):
    items: list[str]
    title: str
    description: str

_pignio.UserDict

Bases: CollectionDict

Source code in _pignio.py
Python
class UserDict(CollectionDict, total=False):
    password: str