Creating an item with label "test item"
item = py_wb.Item().create("test item")Fetching all information about the item with the ID "Q1":
item = py_wb.Item().get(entity_id="Q1")Updating the information about a previously fetched item:
item.get()Deleting a previously fetched item:
item.delete()Creating a property with label "location" and data type "GeoLocation"
prop = py_wb.Property().create("location", data_type="GeoLocation")The default data_type is "StringValue"
Fetching all information about the property with the ID "P1":
prop = py_wb.Property().get(entity_id="P1")Updating the information about a previously fetched property:
prop.get()Deleting a previously fetched property:
prop.delete()