redditwarp.siteprocs.widget.ASYNC#

class redditwarp.siteprocs.widget.ASYNC.WidgetProcedures(client: Client)[source]#

Bases: object

class ImageUploading(outer: WidgetProcedures)[source]#

Bases: object

async obtain_upload_lease(*, sr: str, filepath: str, mimetype: str | None = None) UploadLease[source]#
async deposit_file(file: IO[bytes], upload_lease: UploadLease, *, timeout: float = 1000) None[source]#
async upload(file: IO[bytes], *, sr: str, filepath: str | None = None, timeout: float = 1000) UploadLease[source]#
property image_uploading: None#
class Create(outer: WidgetProcedures)[source]#

Bases: object

async text_area(sr: str, *, header_color: str, background_color: str, title: str, text: str) TextAreaWidget[source]#
async button(sr: str, *, header_color: str, background_color: str, title: str, description: str, buttons: Sequence[Button]) ButtonWidget[source]#
async image(sr: str, *, header_color: str, background_color: str, title: str, items: Sequence[ImageWidgetImageInfo]) ImageWidget[source]#
async community_list(sr: str, *, header_color: str, background_color: str, title: str, items: Sequence[str]) CommunityListWidget[source]#
async calendar(sr: str, *, header_color: str, background_color: str, title: str, google_calendar_id: str, requires_sync: bool, num_events: int, show_title: bool, show_description: bool, show_location: bool, show_date: bool, show_time: bool) CalendarWidget[source]#
async post_flair(sr: str, *, header_color: str, background_color: str, title: str, display: str, order: Sequence[str]) PostFlairWidget[source]#
async custom_css(sr: str, *, header_color: str, background_color: str, title: str, text: str, css: str, height: int | None, image_data: Sequence[CustomCSSWidgetImageInfo]) CustomCSSWidget[source]#
property create: None#
class Replace(outer: WidgetProcedures)[source]#

Bases: object

async text_area(sr: str, idt: str, *, header_color: str, background_color: str, title: str, text: str) TextAreaWidget[source]#
async button(sr: str, idt: str, *, header_color: str, background_color: str, title: str, description: str, buttons: Sequence[Button]) ButtonWidget[source]#
async image(sr: str, idt: str, *, header_color: str, background_color: str, title: str, items: Sequence[ImageWidgetImageInfo]) ImageWidget[source]#
async community_list(sr: str, idt: str, *, header_color: str, background_color: str, title: str, items: Sequence[str]) CommunityListWidget[source]#
async calendar(sr: str, idt: str, *, header_color: str, background_color: str, title: str, google_calendar_id: str, requires_sync: bool, num_events: int, show_title: bool, show_description: bool, show_location: bool, show_date: bool, show_time: bool) CalendarWidget[source]#
async post_flair(sr: str, idt: str, *, header_color: str, background_color: str, title: str, display: str, order: Sequence[str]) PostFlairWidget[source]#
async custom_css(sr: str, idt: str, *, header_color: str, background_color: str, title: str, text: str, css: str, height: int | None, image_data: Sequence[CustomCSSWidgetImageInfo]) CustomCSSWidget[source]#
async community_details(sr: str, idt: str, *, header_color: str, background_color: str, title: str, subscriber_text: str, viewing_text: str) CommunityDetailsWidget[source]#
async moderator_list(sr: str, idt: str, *, header_color: str, background_color: str) ModeratorListWidget[source]#
async rules(sr: str, idt: str, *, header_color: str, background_color: str, title: str, display: str) RulesWidget[source]#
property replace: None#
async create_menu_bar_tabs(sr: str, *, show_wiki: bool, tabs: Sequence[Tab]) MenuBar[source]#
async replace_menu_bar_tabs(sr: str, idt: str, *, show_wiki: bool, tabs: Sequence[Tab]) MenuBar[source]#
async retrieve(sr: str) WidgetList[source]#
async delete(sr: str, idt: str) None[source]#
async reorder(sr: str, order: Sequence[str]) None[source]#