Props
props ¶
Page property values especially for pages within data sources. The names of the properties reflect the name in the Notion UI.
PV_co = TypeVar('PV_co', bound=obj_props.PropertyValue, default=obj_props.PropertyValue, covariant=True) module-attribute ¶
Button(values: Any | Sequence[Any]) ¶
Checkbox(values: Any | Sequence[Any]) ¶
Simple checkbox type; represented as a boolean.
value: bool | None property ¶
CreatedBy(values: Any | Sequence[Any]) ¶
CreatedTime(values: Any | Sequence[Any]) ¶
Date(dt_spec: str | DateTimeOrRange) ¶
Formula(values: Any | Sequence[Any]) ¶
Formula property value.
readonly = True class-attribute instance-attribute ¶
value: str | float | int | DateTimeOrRange | None property ¶
Return the formula result, or None when it is empty or unsupported.
Inspect value_type to distinguish unsupported results from empty values.
value_type: FormulaType | None property ¶
Return the type of the formula result.
ID(values: Any | Sequence[Any]) ¶
LastEditedBy(values: Any | Sequence[Any]) ¶
LastEditedTime(values: Any | Sequence[Any]) ¶
MultiSelect(options: str | Option | Sequence[str | Option]) ¶
Multi-select property value.
value: list[Option] | None property ¶
Place(place: obj_props.PlaceDict | None = None) ¶
PropertyValue(values: Any | Sequence[Any]) ¶
Base class for Notion property values.
Used to map high-level objects to low-level Notion-API objects
id: str property ¶
readonly: bool = False class-attribute instance-attribute ¶
value: Any abstractmethod property ¶
Return the actual Python value object of this property.
__eq__(other: object) -> bool ¶
__init_subclass__(wraps: type[obj_props.PropertyValue], **kwargs: Any) ¶
__repr__() -> str ¶
__str__() -> str ¶
Rollup(values: Any | Sequence[Any]) ¶
Rollup property value.
readonly = True class-attribute instance-attribute ¶
value: float | int | DateTimeOrRange | list[Any] | None property ¶
Return the rollup result, or None when it is empty or unsupported.
Inspect value_type to distinguish unsupported results from empty values.
value_type: RollupType | None property ¶
Return the type of the rollup result.