Blocks
blocks
¶
Wrapper for Notion API blocks.
Blocks are the base for all Notion content.
Block
¶
A standard block object in Notion.
Calling the block will expose the nested data in the object.
id: UUID = None
class-attribute
instance-attribute
¶
Bookmark
¶
Breadcrumb
¶
BulletedListItem
¶
A bulleted list item in Notion.
bulleted_list_item: TypeData = TypeData()
class-attribute
instance-attribute
¶
Callout
¶
A callout block in Notion.
callout: TypeData = TypeData()
class-attribute
instance-attribute
¶
TypeData
¶
children: list[SerializeAsAny[Block]] = Field(default_factory=list)
class-attribute
instance-attribute
¶
color: Color | BGColor = BGColor.GRAY
class-attribute
instance-attribute
¶
icon: SerializeAsAny[FileObject] | EmojiObject = None
class-attribute
instance-attribute
¶
rich_text: list[SerializeAsAny[RichTextBaseObject]] = None
class-attribute
instance-attribute
¶
ChildDatabase
¶
ChildPage
¶
Column
¶
ColumnList
¶
DataObject
¶
The base type for all Notion objects that hold actual data.
Database
¶
A database record type.
cover: SerializeAsAny[FileObject] | None = None
class-attribute
instance-attribute
¶
description: list[SerializeAsAny[RichTextBaseObject]] = None
class-attribute
instance-attribute
¶
icon: SerializeAsAny[FileObject] | EmojiObject | None = None
class-attribute
instance-attribute
¶
is_inline: bool = False
class-attribute
instance-attribute
¶
properties: dict[str, PropertyType] = None
class-attribute
instance-attribute
¶
public_url: str | None = None
class-attribute
instance-attribute
¶
title: list[SerializeAsAny[RichTextBaseObject]] = None
class-attribute
instance-attribute
¶
url: str = None
class-attribute
instance-attribute
¶
build_mention(style: Annotations | None = None) -> MentionObject
¶
Divider
¶
Embed
¶
Equation
¶
File
¶
A file block in Notion.
file: SerializeAsAny[FileObject] = None
class-attribute
instance-attribute
¶
FileBase
¶
A abstract block referencing a FileObject.
Heading
¶
Heading1
¶
A heading_1 block in Notion.
heading_1: Heading.TypeData = Heading.TypeData()
class-attribute
instance-attribute
¶
Heading2
¶
A heading_2 block in Notion.
heading_2: Heading.TypeData = Heading.TypeData()
class-attribute
instance-attribute
¶
Heading3
¶
A heading_3 block in Notion.
heading_3: Heading.TypeData = Heading.TypeData()
class-attribute
instance-attribute
¶
Image
¶
An image block in Notion.
image: SerializeAsAny[FileObject] = None
class-attribute
instance-attribute
¶
LinkPreview
¶
LinkToPage
¶
A link_to_page block in Notion.
link_to_page: SerializeAsAny[ParentRef] = None
class-attribute
instance-attribute
¶
NumberedListItem
¶
A numbered list item in Notion.
numbered_list_item: TypeData = TypeData()
class-attribute
instance-attribute
¶
PDF
¶
A pdf block in Notion.
pdf: SerializeAsAny[FileObject] = None
class-attribute
instance-attribute
¶
Page
¶
A standard Notion page object.
cover: SerializeAsAny[FileObject] | None = None
class-attribute
instance-attribute
¶
icon: SerializeAsAny[FileObject] | EmojiObject | None = None
class-attribute
instance-attribute
¶
properties: dict[str, PropertyValue] = None
class-attribute
instance-attribute
¶
public_url: str | None = None
class-attribute
instance-attribute
¶
title: list[RichTextBaseObject]
property
¶
Retrieve the title of the page from page properties.
url: str = None
class-attribute
instance-attribute
¶
build_mention(style: Annotations | None = None) -> MentionObject
¶
Paragraph
¶
A paragraph block in Notion.
paragraph: TypeData = TypeData()
class-attribute
instance-attribute
¶
SyncedBlock
¶
TableOfContents
¶
TableRow
¶
Template
¶
A template block in Notion.
TextBlock
¶
A standard abstract text block object in Notion.
ToDo
¶
A todo list item in Notion.
to_do: TypeData = TypeData()
class-attribute
instance-attribute
¶
TypeData
¶
checked: bool = False
class-attribute
instance-attribute
¶
children: list[SerializeAsAny[Block]] = Field(default_factory=list)
class-attribute
instance-attribute
¶
color: Color | BGColor = Color.DEFAULT
class-attribute
instance-attribute
¶
rich_text: list[SerializeAsAny[RichTextBaseObject]] = None
class-attribute
instance-attribute
¶
Toggle
¶
A toggle list item in Notion.