Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5e7b0f3

Browse files
Merge pull request#103 from appwrite/dev
feat: add types to parameters
2 parents33e173b +8e39f05 commit5e7b0f3

19 files changed

+287
-534
lines changed

‎appwrite/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ def __init__(self):
1313
self._endpoint='https://cloud.appwrite.io/v1'
1414
self._global_headers= {
1515
'content-type':'',
16-
'user-agent' :'AppwritePythonSDK/8.0.0 (${os.uname().sysname};${os.uname().version};${os.uname().machine})',
16+
'user-agent' :f'AppwritePythonSDK/9.0.0 ({os.uname().sysname};{os.uname().version};{os.uname().machine})',
1717
'x-sdk-name':'Python',
1818
'x-sdk-platform':'server',
1919
'x-sdk-language':'python',
20-
'x-sdk-version':'8.0.0',
20+
'x-sdk-version':'9.0.0',
2121
'X-Appwrite-Response-Format' :'1.6.0',
2222
}
2323

@@ -131,9 +131,9 @@ def call(self, method, path='', headers=None, params=None, response_type='json')
131131
ifresponse!=None:
132132
content_type=response.headers['Content-Type']
133133
ifcontent_type.startswith('application/json'):
134-
raiseAppwriteException(response.json()['message'],response.status_code,response.json().get('type'),response.json())
134+
raiseAppwriteException(response.json()['message'],response.status_code,response.json().get('type'),response.text)
135135
else:
136-
raiseAppwriteException(response.text,response.status_code)
136+
raiseAppwriteException(response.text,response.status_code,None,response.text)
137137
else:
138138
raiseAppwriteException(e)
139139

‎appwrite/enums/credit_card.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ class CreditCard(Enum):
1717
VISA="visa"
1818
MIR="mir"
1919
MAESTRO="maestro"
20+
RUPAY="rupay"

‎appwrite/enums/name.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ class Name(Enum):
66
V1_AUDITS="v1-audits"
77
V1_MAILS="v1-mails"
88
V1_FUNCTIONS="v1-functions"
9-
V1_USAGE="v1-usage"
10-
V1_USAGE_DUMP="v1-usage-dump"
9+
V1_STATS_RESOURCES="v1-stats-resources"
10+
V1_STATS_USAGE="v1-stats-usage"
11+
V1_STATS_USAGE_DUMP="v1-stats-usage-dump"
1112
V1_WEBHOOKS="v1-webhooks"
1213
V1_CERTIFICATES="v1-certificates"
1314
V1_BUILDS="v1-builds"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp