Skip to content

Commit 9e2e7fd

Browse files
fix snake case naming
1 parent 0e95063 commit 9e2e7fd

24 files changed

+30
-30
lines changed

appwrite/client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def __init__(self):
88
self._endpoint = 'https://appwrite.io/v1'
99
self._global_headers = {
1010
'content-type': '',
11-
'x-sdk-version': 'appwrite:python:0.2.2',
11+
'x-sdk-version': 'appwrite:python:0.2.3',
1212
'X-Appwrite-Response-Format' : '0.8.0',
1313
}
1414

@@ -27,23 +27,23 @@ def add_header(self, key, value):
2727
def set_project(self, value):
2828
"""Your project ID"""
2929

30-
self._global_headers['x-appwrite-project'] = value.lower()
30+
self._global_headers['x-appwrite-project'] = value
3131
return self
3232

3333
def set_key(self, value):
3434
"""Your secret API key"""
3535

36-
self._global_headers['x-appwrite-key'] = value.lower()
36+
self._global_headers['x-appwrite-key'] = value
3737
return self
3838

39-
def set_j_w_t(self, value):
39+
def set_jwt(self, value):
4040
"""Your secret JSON Web Token"""
4141

42-
self._global_headers['x-appwrite-jwt'] = value.lower()
42+
self._global_headers['x-appwrite-jwt'] = value
4343
return self
4444

4545
def set_locale(self, value):
46-
self._global_headers['x-appwrite-locale'] = value.lower()
46+
self._global_headers['x-appwrite-locale'] = value
4747
return self
4848

4949
def call(self, method, path='', headers=None, params=None):

appwrite/services/avatars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def get_initials(self, name = None, width = None, height = None, color = None, b
138138
'content-type': 'application/json',
139139
}, params)
140140

141-
def get_q_r(self, text, size = None, margin = None, download = None):
141+
def get_qr(self, text, size = None, margin = None, download = None):
142142
"""Get QR Code"""
143143

144144
if text is None:

appwrite/services/health.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_cache(self):
3636
'content-type': 'application/json',
3737
}, params)
3838

39-
def get_d_b(self):
39+
def get_db(self):
4040
"""Get DB"""
4141

4242
params = {}

appwrite/services/locale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_countries(self):
3636
'content-type': 'application/json',
3737
}, params)
3838

39-
def get_countries_e_u(self):
39+
def get_countries_eu(self):
4040
"""List EU Countries"""
4141

4242
params = {}

docs/examples/account/create-recovery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ client = Client()
66
(client
77
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
88
.set_project('5df5acd0d48c2') # Your project ID
9-
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
9+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
1010
)
1111

1212
account = Account(client)

docs/examples/account/create-verification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ client = Client()
66
(client
77
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
88
.set_project('5df5acd0d48c2') # Your project ID
9-
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
9+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
1010
)
1111

1212
account = Account(client)

docs/examples/account/delete-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ client = Client()
66
(client
77
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
88
.set_project('5df5acd0d48c2') # Your project ID
9-
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
9+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
1010
)
1111

1212
account = Account(client)

docs/examples/account/delete-sessions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ client = Client()
66
(client
77
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
88
.set_project('5df5acd0d48c2') # Your project ID
9-
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
9+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
1010
)
1111

1212
account = Account(client)

docs/examples/account/delete.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ client = Client()
66
(client
77
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
88
.set_project('5df5acd0d48c2') # Your project ID
9-
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
9+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
1010
)
1111

1212
account = Account(client)

docs/examples/account/get-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ client = Client()
66
(client
77
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
88
.set_project('5df5acd0d48c2') # Your project ID
9-
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
9+
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
1010
)
1111

1212
account = Account(client)

0 commit comments

Comments
 (0)