Props
props
¶
Wrapper for property values of pages
BooleanFormula
¶
A Notion boolean formula result.
boolean: bool | None = None
class-attribute
instance-attribute
¶
Checkbox
¶
Simple checkbox type; represented as a boolean.
checkbox: bool | None = None
class-attribute
instance-attribute
¶
CreatedBy
¶
A Notion created-by property value.
created_by: SerializeAsAny[User]
instance-attribute
¶
Date
¶
DateFormula
¶
A Notion date formula result.
date: DateRange | None = None
class-attribute
instance-attribute
¶
Files
¶
Notion files type.
files: list[SerializeAsAny[FileObject]] = None
class-attribute
instance-attribute
¶
Formula
¶
A Notion formula property value.
formula: FormulaResult | None = None
class-attribute
instance-attribute
¶
FormulaResult
¶
A Notion formula result.
This object contains the result of the expression in the database properties.
LastEditedBy
¶
A Notion last-edited-by property value.
last_edited_by: SerializeAsAny[User]
instance-attribute
¶
LastEditedTime
¶
A Notion last-edited-time property value.
last_edited_time: dt.datetime
instance-attribute
¶
MultiSelect
¶
Notion multi-select type.
multi_select: list[SelectOption] = None
class-attribute
instance-attribute
¶
NumberFormula
¶
A Notion number formula result.
number: float | int | None = None
class-attribute
instance-attribute
¶
People
¶
PhoneNumber
¶
Notion phone type.
phone_number: str | None = None
class-attribute
instance-attribute
¶
PropertyItem
¶
A PropertyItem
returned by the Notion API.
Basic property items have a similar schema to corresponding property values. As a result, these items share the PropertyValue
type definitions.
This class provides a placeholder for parsing property items, however objects parse by this class will likely be PropertyValue
's instead.
Notion-API: https://developers.notion.com/reference/property-item-object
id: str
instance-attribute
¶
PropertyValue
¶
Base class for Notion property values.
id: str = None
class-attribute
instance-attribute
¶
build(value)
classmethod
¶
Build the property value from given value, e.g. native Python or nested type.
In practice, this is like calling init with the corresponding keyword.
serialize_for_api()
¶
Serialize the object for sending it to the Notion API.
Relation
¶
RichText
¶
Notion rich text type.
rich_text: list[SerializeAsAny[RichTextBaseObject]] = None
class-attribute
instance-attribute
¶
Rollup
¶
A Notion rollup property value.
rollup: RollupObject | None = None
class-attribute
instance-attribute
¶
RollupDate
¶
A Notion rollup date property value.
date: DateRange | None = None
class-attribute
instance-attribute
¶
RollupNumber
¶
A Notion rollup number property value.
number: float | int | None = None
class-attribute
instance-attribute
¶
RollupObject
¶
A Notion rollup property value.
function: AggFunc | None = None
class-attribute
instance-attribute
¶
Select
¶
Notion select type.
select: SelectOption | None = None
class-attribute
instance-attribute
¶
Status
¶
Notion status property.
status: SelectOption | None = None
class-attribute
instance-attribute
¶
StringFormula
¶
A Notion string formula result.
string: str | None = None
class-attribute
instance-attribute
¶
Title
¶
Notion title type.