sharkey_crawler.types package
Module contents
This provides access to all types.
Classes:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
An enumeration. |
|
|
|
|
|
Represents a post as returned by Sharkey. |
alias of |
|
|
Represents a user lite as returned by Sharkey. |
|
An enumeration. |
- class sharkey_crawler.types.AvatarDecoration(**data)[source]
Bases:
BaseModel
Attributes:
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- Parameters:
id (str)
angle (float | int | None)
flip_h (bool | None)
url (str)
offset_x (float | int | None)
offset_y (float | int | None)
- id: SharkeyId
- angle: float | int | None
- flip_h: bool | None
- url: str
- offset_x: float | int | None
- offset_y: float | int | None
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class sharkey_crawler.types.BadgeRole(**data)[source]
Bases:
BaseModel
Attributes:
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- Parameters:
name (str)
icon_url (str | None)
display_order (int)
behavior (str | None)
- name: str
- icon_url: str | None
- display_order: int
- behavior: str | None
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class sharkey_crawler.types.Channel(**data)[source]
Bases:
BaseModel
Attributes:
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- Parameters:
id (str)
name (str)
color (str)
is_sensitive (bool)
allow_renote_to_external (bool)
user_id (str | None)
- id: SharkeyId
- name: str
- color: str
- is_sensitive: bool
- allow_renote_to_external: bool
- user_id: SharkeyId | None
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class sharkey_crawler.types.DriveFile(**data)[source]
Bases:
BaseModel
Attributes:
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- Parameters:
data (Any)
id (str)
created_at (datetime | None)
name (str)
type (str)
md5 (str)
size (int | float)
is_sensitive (bool | None)
blurhash (str | None)
properties (DriveFileProperties | None)
url (str)
thumbnail_url (str | None)
comment (str | None)
folder_id (str | None)
folder (DriveFolder | None)
user_id (str | None)
user (UserLite | None)
- id: SharkeyId
- created_at: datetime | None
- name: str
- type: str
- md5: str
- size: int | float
- is_sensitive: bool | None
- blurhash: str | None
- properties: DriveFileProperties | None
- url: str
- thumbnail_url: str | None
- comment: str | None
- folder_id: SharkeyId | None
- folder: DriveFolder | None
- user_id: SharkeyId | None
- user: UserLite | None
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class sharkey_crawler.types.DriveFileProperties(**data)[source]
Bases:
BaseModel
Attributes:
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- Parameters:
width (int | float | None)
height (int | float | None)
orientation (int | float | None)
avg_color (str | None)
- width: int | float | None
- height: int | float | None
- orientation: int | float | None
- avg_color: str | None
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class sharkey_crawler.types.DriveFolder(**data)[source]
Bases:
BaseModel
Attributes:
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- Parameters:
id (str)
created_at (datetime)
name (str)
parent_id (str | None)
folders_count (int)
files_count (int)
parent (DriveFolder)
- id: SharkeyId
- created_at: datetime
- name: str
- parent_id: SharkeyId | None
- folders_count: int
- files_count: int
- parent: DriveFolder
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class sharkey_crawler.types.Instance(**data)[source]
Bases:
BaseModel
Attributes:
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- Parameters:
id (str | None)
name (str | None)
software_name (str | None)
software_version (str | None)
icon_url (str | None)
favicon_url (str | None)
theme_color (str | None)
- id: SharkeyId | None
- name: str | None
- software_name: str | None
- software_version: str | None
- icon_url: str | None
- favicon_url: str | None
- theme_color: str | None
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class sharkey_crawler.types.OnlineStatus(value)[source]
Bases:
str
,Enum
An enumeration.
Attributes:
- unknown = 'unknown'
- online = 'online'
- active = 'active'
- offline = 'offline'
- class sharkey_crawler.types.Poll(**data)[source]
Bases:
BaseModel
Attributes:
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- Parameters:
data (Any)
expires_at (datetime | None)
multiple (bool)
choices (list[PollChoice])
- expires_at: datetime | None
- multiple: bool
- choices: list[PollChoice]
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class sharkey_crawler.types.PollChoice(**data)[source]
Bases:
BaseModel
Attributes:
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- Parameters:
is_voted (bool)
text (str)
votes (int)
- is_voted: bool
- text: str
- votes: int
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class sharkey_crawler.types.Post(**data)[source]
Bases:
BaseModel
Represents a post as returned by Sharkey.
Attributes:
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- Parameters:
data (Any)
id (str)
created_at (datetime)
updated_at (datetime | None)
deleted_at (datetime | None)
text (str | None)
cw (str | None)
user_id (str)
user (UserLite)
reply_id (str | None)
renote_id (str | None)
reply (Post | None)
renote (Post | None)
is_hidden (bool | None)
visibility (Visibility)
mentions (list[str])
visible_user_ids (list[str])
file_ids (list[str])
files (list[DriveFile])
tags (list[str])
poll (Poll | None)
emojis (dict[str, str])
channel_id (str | None)
channel (Channel | None)
local_only (bool | None)
reaction_acceptance (str | None)
reaction_emojis (dict[str, str])
reactions (dict[str, int])
reaction_count (int)
renote_count (int)
replies_count (int)
uri (str | None)
url (str | None)
reaction_and_user_pair_cache (list[str])
clipped_count (int | None)
my_reaction (str | None)
- id: SharkeyId
- created_at: datetime
- updated_at: datetime | None
- deleted_at: datetime | None
- text: str | None
- cw: str | None
- user_id: SharkeyId
- user: UserLite
- reply_id: SharkeyId | None
- renote_id: SharkeyId | None
- reply: Post | None
- renote: Post | None
- is_hidden: bool | None
- visibility: Visibility
- mentions: list[SharkeyId]
- visible_user_ids: list[SharkeyId]
- file_ids: list[SharkeyId]
- files: list[DriveFile]
- tags: list[str]
- poll: Poll | None
- emojis: dict[str, str]
- channel_id: SharkeyId | None
- channel: Channel | None
- local_only: bool | None
- reaction_acceptance: str | None
- reaction_emojis: dict[str, str]
- reactions: dict[str, int]
- reaction_count: int
- renote_count: int
- replies_count: int
- uri: str | None
- url: str | None
- reaction_and_user_pair_cache: list[str]
- clipped_count: int | None
- my_reaction: str | None
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- sharkey_crawler.types.SharkeyId
alias of
str
- class sharkey_crawler.types.UserLite(**data)[source]
Bases:
BaseModel
Represents a user lite as returned by Sharkey.
Attributes:
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- Parameters:
data (Any)
id (str)
name (str | None)
description (str | None)
username (str)
host (str | None)
created_at (datetime | None)
avatar_url (str | None)
avatar_blurhash (str | None)
avatar_decorations (list[AvatarDecoration])
is_bot (bool | None)
is_cat (bool | None)
instance (Instance | None)
emojis (dict[str, str])
online_status (OnlineStatus)
badge_roles (list[BadgeRole])
noindex (bool)
is_silenced (bool)
speak_as_cat (bool)
approved (bool)
followers_count (int)
following_count (int)
notes_count (int)
- id: SharkeyId
- name: str | None
- description: str | None
- username: str
- host: str | None
- created_at: datetime | None
- avatar_url: str | None
- avatar_blurhash: str | None
- avatar_decorations: list[AvatarDecoration]
- is_bot: bool | None
- is_cat: bool | None
- instance: Instance | None
- emojis: dict[str, str]
- online_status: OnlineStatus
- badge_roles: list[BadgeRole]
- noindex: bool
- is_silenced: bool
- speak_as_cat: bool
- approved: bool
- followers_count: int
- following_count: int
- notes_count: int
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].