chitose.app.bsky.embed package#
Submodules#
chitose.app.bsky.embed.external module#
A representation of some externally linked content, embedded in another form of content
- class chitose.app.bsky.embed.external.External(external: ExternalExternal)#
Bases:
Object- to_dict() dict[str, Any]#
- class chitose.app.bsky.embed.external.ExternalExternal(uri: str, title: str, description: str, thumb: Blob | None = None)#
Bases:
Object- to_dict() dict[str, Any]#
- class chitose.app.bsky.embed.external.View(external: ViewExternal)#
Bases:
Object- to_dict() dict[str, Any]#
chitose.app.bsky.embed.images module#
A set of images embedded in some other form of content
- class chitose.app.bsky.embed.images.AspectRatio(width: int, height: int)#
Bases:
Objectwidth:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.
- to_dict() dict[str, Any]#
- class chitose.app.bsky.embed.images.Image(image: Blob, alt: str, aspect_ratio: AspectRatio | None = None)#
Bases:
Object- to_dict() dict[str, Any]#
- class chitose.app.bsky.embed.images.Images(images: list[Image])#
Bases:
Object- to_dict() dict[str, Any]#
- class chitose.app.bsky.embed.images.View(images: list[ViewImage])#
Bases:
Object- to_dict() dict[str, Any]#
- class chitose.app.bsky.embed.images.ViewImage(thumb: str, fullsize: str, alt: str, aspect_ratio: AspectRatio | None = None)#
Bases:
Object- to_dict() dict[str, Any]#
chitose.app.bsky.embed.record module#
A representation of a record embedded in another form of content
- class chitose.app.bsky.embed.record.Record(record: StrongRef)#
Bases:
Object- to_dict() dict[str, Any]#
- class chitose.app.bsky.embed.record.View(record: ViewRecord | ViewNotFound | ViewBlocked | GeneratorView | ListView)#
Bases:
Object- to_dict() dict[str, Any]#
- class chitose.app.bsky.embed.record.ViewBlocked(uri: str, blocked: bool, author: BlockedAuthor)#
Bases:
Object- to_dict() dict[str, Any]#
chitose.app.bsky.embed.record_with_media module#
A representation of a record embedded in another form of content, alongside other compatible embeds
Module contents#
- class chitose.app.bsky.embed.Embed_(call: Callable[[str, list[tuple[str, str | None | int | list[str]]], bytes | dict | None, dict[str, str]], bytes], subscribe: Callable[[str, list[tuple[str, str | None | int | list[str]]], Callable[[str | bytes], None]], None])#
Bases:
objectWe recommend calling methods in this class via the chitose.BskyAgent class instead of creating instances of this class directly.