Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Change Log

## 26.0.0

* Breaking: `tables_db`, `documents_db` and `vectors_db` `create` and `update` take `description` before `specification`
* Breaking: `functions.update` takes `description` before `email_enabled`
* Added: `create_query` on `databases`, `documents_db` and `tables_db` to send list queries in the request body
* Added: `account.list_memberships`
* Added: optional `description` on create and update for databases, collections, tables, attributes, columns, indexes, buckets, functions, sites, variables, topics, webhooks and keys
* Added: `description` on the matching models
* Added: `total` on list methods in `activities`, `backups`, `domains`, `mongo`, `mysql` and `postgresql`
* Added: `emails` on `messaging.create_email` and `messaging.update_email`
* Added: `deny_list` on `project.update_password_dictionary_policy`, `update_password_personal_data_policy` and their policy models
* Added: `BillingPlan.functions_allow_cron`
* Added: `strip_metadata` on `storage.create_bucket`, `update_bucket` and the `Bucket` model
* Updated: package classifiers list Python 3.13

## 25.0.0

* Breaking: requests send `X-Appwrite-Response-Format: 2.5.0`; responses follow the 2.5 shapes
Expand Down
4 changes: 2 additions & 2 deletions appwrite/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def __init__(self):
self._endpoint = 'https://cloud.appwrite.io/v1'
self._global_headers = {
'content-type': '',
'user-agent': f'AppwritePythonSDK/25.0.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
'user-agent': f'AppwritePythonSDK/26.0.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
'x-sdk-name': 'Python',
'x-sdk-platform': 'server',
'x-sdk-language': 'python',
'x-sdk-version': '25.0.0',
'x-sdk-version': '26.0.0',
'X-Appwrite-Response-Format': '2.5.0',
}
self._config = {}
Expand Down
5 changes: 5 additions & 0 deletions appwrite/models/attribute_bigint.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AttributeBigint(AppwriteModel):
----------
key : str
Attribute Key.
description : str
Optional description for the attribute.
type : str
Attribute type.
status : AttributeStatus
Expand All @@ -36,6 +38,7 @@ class AttributeBigint(AppwriteModel):
"""

key: str = Field(..., alias='key')
description: str = Field(..., alias='description')
type: str = Field(..., alias='type')
status: AttributeStatus = Field(..., alias='status')
error: str = Field(..., alias='error')
Expand All @@ -56,6 +59,8 @@ def _apply_defaults(cls, data: Any) -> Any:
data = dict(data)
if 'key' not in data:
data['key'] = ''
if 'description' not in data:
data['description'] = ''
if 'type' not in data:
data['type'] = ''
if 'error' not in data:
Expand Down
5 changes: 5 additions & 0 deletions appwrite/models/attribute_boolean.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AttributeBoolean(AppwriteModel):
----------
key : str
Attribute Key.
description : str
Optional description for the attribute.
type : str
Attribute type.
status : AttributeStatus
Expand All @@ -32,6 +34,7 @@ class AttributeBoolean(AppwriteModel):
"""

key: str = Field(..., alias='key')
description: str = Field(..., alias='description')
type: str = Field(..., alias='type')
status: AttributeStatus = Field(..., alias='status')
error: str = Field(..., alias='error')
Expand All @@ -50,6 +53,8 @@ def _apply_defaults(cls, data: Any) -> Any:
data = dict(data)
if 'key' not in data:
data['key'] = ''
if 'description' not in data:
data['description'] = ''
if 'type' not in data:
data['type'] = ''
if 'error' not in data:
Expand Down
5 changes: 5 additions & 0 deletions appwrite/models/attribute_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AttributeDatetime(AppwriteModel):
----------
key : str
Attribute Key.
description : str
Optional description for the attribute.
type : str
Attribute type.
status : AttributeStatus
Expand All @@ -34,6 +36,7 @@ class AttributeDatetime(AppwriteModel):
"""

key: str = Field(..., alias='key')
description: str = Field(..., alias='description')
type: str = Field(..., alias='type')
status: AttributeStatus = Field(..., alias='status')
error: str = Field(..., alias='error')
Expand All @@ -53,6 +56,8 @@ def _apply_defaults(cls, data: Any) -> Any:
data = dict(data)
if 'key' not in data:
data['key'] = ''
if 'description' not in data:
data['description'] = ''
if 'type' not in data:
data['type'] = ''
if 'error' not in data:
Expand Down
5 changes: 5 additions & 0 deletions appwrite/models/attribute_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AttributeEmail(AppwriteModel):
----------
key : str
Attribute Key.
description : str
Optional description for the attribute.
type : str
Attribute type.
status : AttributeStatus
Expand All @@ -34,6 +36,7 @@ class AttributeEmail(AppwriteModel):
"""

key: str = Field(..., alias='key')
description: str = Field(..., alias='description')
type: str = Field(..., alias='type')
status: AttributeStatus = Field(..., alias='status')
error: str = Field(..., alias='error')
Expand All @@ -53,6 +56,8 @@ def _apply_defaults(cls, data: Any) -> Any:
data = dict(data)
if 'key' not in data:
data['key'] = ''
if 'description' not in data:
data['description'] = ''
if 'type' not in data:
data['type'] = ''
if 'error' not in data:
Expand Down
5 changes: 5 additions & 0 deletions appwrite/models/attribute_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AttributeEnum(AppwriteModel):
----------
key : str
Attribute Key.
description : str
Optional description for the attribute.
type : str
Attribute type.
status : AttributeStatus
Expand All @@ -36,6 +38,7 @@ class AttributeEnum(AppwriteModel):
"""

key: str = Field(..., alias='key')
description: str = Field(..., alias='description')
type: str = Field(..., alias='type')
status: AttributeStatus = Field(..., alias='status')
error: str = Field(..., alias='error')
Expand All @@ -56,6 +59,8 @@ def _apply_defaults(cls, data: Any) -> Any:
data = dict(data)
if 'key' not in data:
data['key'] = ''
if 'description' not in data:
data['description'] = ''
if 'type' not in data:
data['type'] = ''
if 'error' not in data:
Expand Down
5 changes: 5 additions & 0 deletions appwrite/models/attribute_float.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AttributeFloat(AppwriteModel):
----------
key : str
Attribute Key.
description : str
Optional description for the attribute.
type : str
Attribute type.
status : AttributeStatus
Expand All @@ -36,6 +38,7 @@ class AttributeFloat(AppwriteModel):
"""

key: str = Field(..., alias='key')
description: str = Field(..., alias='description')
type: str = Field(..., alias='type')
status: AttributeStatus = Field(..., alias='status')
error: str = Field(..., alias='error')
Expand All @@ -56,6 +59,8 @@ def _apply_defaults(cls, data: Any) -> Any:
data = dict(data)
if 'key' not in data:
data['key'] = ''
if 'description' not in data:
data['description'] = ''
if 'type' not in data:
data['type'] = ''
if 'error' not in data:
Expand Down
5 changes: 5 additions & 0 deletions appwrite/models/attribute_integer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AttributeInteger(AppwriteModel):
----------
key : str
Attribute Key.
description : str
Optional description for the attribute.
type : str
Attribute type.
status : AttributeStatus
Expand All @@ -36,6 +38,7 @@ class AttributeInteger(AppwriteModel):
"""

key: str = Field(..., alias='key')
description: str = Field(..., alias='description')
type: str = Field(..., alias='type')
status: AttributeStatus = Field(..., alias='status')
error: str = Field(..., alias='error')
Expand All @@ -56,6 +59,8 @@ def _apply_defaults(cls, data: Any) -> Any:
data = dict(data)
if 'key' not in data:
data['key'] = ''
if 'description' not in data:
data['description'] = ''
if 'type' not in data:
data['type'] = ''
if 'error' not in data:
Expand Down
5 changes: 5 additions & 0 deletions appwrite/models/attribute_ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AttributeIp(AppwriteModel):
----------
key : str
Attribute Key.
description : str
Optional description for the attribute.
type : str
Attribute type.
status : AttributeStatus
Expand All @@ -34,6 +36,7 @@ class AttributeIp(AppwriteModel):
"""

key: str = Field(..., alias='key')
description: str = Field(..., alias='description')
type: str = Field(..., alias='type')
status: AttributeStatus = Field(..., alias='status')
error: str = Field(..., alias='error')
Expand All @@ -53,6 +56,8 @@ def _apply_defaults(cls, data: Any) -> Any:
data = dict(data)
if 'key' not in data:
data['key'] = ''
if 'description' not in data:
data['description'] = ''
if 'type' not in data:
data['type'] = ''
if 'error' not in data:
Expand Down
5 changes: 5 additions & 0 deletions appwrite/models/attribute_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AttributeLine(AppwriteModel):
----------
key : str
Attribute Key.
description : str
Optional description for the attribute.
type : str
Attribute type.
status : AttributeStatus
Expand All @@ -32,6 +34,7 @@ class AttributeLine(AppwriteModel):
"""

key: str = Field(..., alias='key')
description: str = Field(..., alias='description')
type: str = Field(..., alias='type')
status: AttributeStatus = Field(..., alias='status')
error: str = Field(..., alias='error')
Expand All @@ -50,6 +53,8 @@ def _apply_defaults(cls, data: Any) -> Any:
data = dict(data)
if 'key' not in data:
data['key'] = ''
if 'description' not in data:
data['description'] = ''
if 'type' not in data:
data['type'] = ''
if 'error' not in data:
Expand Down
5 changes: 5 additions & 0 deletions appwrite/models/attribute_longtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AttributeLongtext(AppwriteModel):
----------
key : str
Attribute Key.
description : str
Optional description for the attribute.
type : str
Attribute type.
status : AttributeStatus
Expand All @@ -34,6 +36,7 @@ class AttributeLongtext(AppwriteModel):
"""

key: str = Field(..., alias='key')
description: str = Field(..., alias='description')
type: str = Field(..., alias='type')
status: AttributeStatus = Field(..., alias='status')
error: str = Field(..., alias='error')
Expand All @@ -53,6 +56,8 @@ def _apply_defaults(cls, data: Any) -> Any:
data = dict(data)
if 'key' not in data:
data['key'] = ''
if 'description' not in data:
data['description'] = ''
if 'type' not in data:
data['type'] = ''
if 'error' not in data:
Expand Down
5 changes: 5 additions & 0 deletions appwrite/models/attribute_mediumtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AttributeMediumtext(AppwriteModel):
----------
key : str
Attribute Key.
description : str
Optional description for the attribute.
type : str
Attribute type.
status : AttributeStatus
Expand All @@ -34,6 +36,7 @@ class AttributeMediumtext(AppwriteModel):
"""

key: str = Field(..., alias='key')
description: str = Field(..., alias='description')
type: str = Field(..., alias='type')
status: AttributeStatus = Field(..., alias='status')
error: str = Field(..., alias='error')
Expand All @@ -53,6 +56,8 @@ def _apply_defaults(cls, data: Any) -> Any:
data = dict(data)
if 'key' not in data:
data['key'] = ''
if 'description' not in data:
data['description'] = ''
if 'type' not in data:
data['type'] = ''
if 'error' not in data:
Expand Down
5 changes: 5 additions & 0 deletions appwrite/models/attribute_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AttributeObject(AppwriteModel):
----------
key : str
Attribute Key.
description : str
Optional description for the attribute.
type : str
Attribute type.
status : AttributeStatus
Expand All @@ -30,6 +32,7 @@ class AttributeObject(AppwriteModel):
"""

key: str = Field(..., alias='key')
description: str = Field(..., alias='description')
type: str = Field(..., alias='type')
status: AttributeStatus = Field(..., alias='status')
error: str = Field(..., alias='error')
Expand All @@ -47,6 +50,8 @@ def _apply_defaults(cls, data: Any) -> Any:
data = dict(data)
if 'key' not in data:
data['key'] = ''
if 'description' not in data:
data['description'] = ''
if 'type' not in data:
data['type'] = ''
if 'error' not in data:
Expand Down
5 changes: 5 additions & 0 deletions appwrite/models/attribute_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AttributePoint(AppwriteModel):
----------
key : str
Attribute Key.
description : str
Optional description for the attribute.
type : str
Attribute type.
status : AttributeStatus
Expand All @@ -32,6 +34,7 @@ class AttributePoint(AppwriteModel):
"""

key: str = Field(..., alias='key')
description: str = Field(..., alias='description')
type: str = Field(..., alias='type')
status: AttributeStatus = Field(..., alias='status')
error: str = Field(..., alias='error')
Expand All @@ -50,6 +53,8 @@ def _apply_defaults(cls, data: Any) -> Any:
data = dict(data)
if 'key' not in data:
data['key'] = ''
if 'description' not in data:
data['description'] = ''
if 'type' not in data:
data['type'] = ''
if 'error' not in data:
Expand Down
5 changes: 5 additions & 0 deletions appwrite/models/attribute_polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class AttributePolygon(AppwriteModel):
----------
key : str
Attribute Key.
description : str
Optional description for the attribute.
type : str
Attribute type.
status : AttributeStatus
Expand All @@ -32,6 +34,7 @@ class AttributePolygon(AppwriteModel):
"""

key: str = Field(..., alias='key')
description: str = Field(..., alias='description')
type: str = Field(..., alias='type')
status: AttributeStatus = Field(..., alias='status')
error: str = Field(..., alias='error')
Expand All @@ -50,6 +53,8 @@ def _apply_defaults(cls, data: Any) -> Any:
data = dict(data)
if 'key' not in data:
data['key'] = ''
if 'description' not in data:
data['description'] = ''
if 'type' not in data:
data['type'] = ''
if 'error' not in data:
Expand Down
Loading