Skip to content

Commit 987cc34

Browse files
committed
Release candidate for 1.5.x
1 parent 10be5b7 commit 987cc34

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

appwrite/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ def __init__(self):
1313
self._endpoint = 'https://cloud.appwrite.io/v1'
1414
self._global_headers = {
1515
'content-type': '',
16-
'user-agent' : 'AppwritePythonSDK/5.0.0-rc.2 (${os.uname().sysname}; ${os.uname().version}; ${os.uname().machine})',
16+
'user-agent' : 'AppwritePythonSDK/5.0.0-rc.3 (${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': '5.0.0-rc.2',
21-
'X-Appwrite-Response-Format' : '1.4.0',
20+
'x-sdk-version': '5.0.0-rc.3',
21+
'X-Appwrite-Response-Format' : '1.5.0',
2222
}
2323

2424
def set_self_signed(self, status=True):

appwrite/encoders/value_class_encoder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import json
2-
from ..enums.factor import Factor
3-
from ..enums.type import Type
2+
from ..enums.authentication_factor import AuthenticationFactor
3+
from ..enums.authenticator_type import AuthenticatorType
44
from ..enums.o_auth_provider import OAuthProvider
55
from ..enums.browser import Browser
66
from ..enums.credit_card import CreditCard
@@ -21,10 +21,10 @@
2121

2222
class ValueClassEncoder(json.JSONEncoder):
2323
def default(self, o):
24-
if isinstance(o, Factor):
24+
if isinstance(o, AuthenticationFactor):
2525
return o.value
2626

27-
if isinstance(o, Type):
27+
if isinstance(o, AuthenticatorType):
2828
return o.value
2929

3030
if isinstance(o, OAuthProvider):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from enum import Enum
22

3-
class Factor(Enum):
3+
class AuthenticationFactor(Enum):
44
TOTP = "totp"
55
PHONE = "phone"
66
EMAIL = "email"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from enum import Enum
22

3-
class Type(Enum):
3+
class AuthenticatorType(Enum):
44
TOTP = "totp"

docs/examples/account/add-authenticator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from appwrite.client import Client
2-
from Appwrite.enums import
2+
from Appwrite.enums import AuthenticatorType
33

44
client = Client()
55

@@ -11,4 +11,4 @@ client = Client()
1111

1212
account = Account(client)
1313

14-
result = account.add_authenticator(.TOTP)
14+
result = account.add_authenticator(AuthenticatorType.TOTP)

docs/examples/account/create2f-a-challenge.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from appwrite.client import Client
2-
from Appwrite.enums import
2+
from Appwrite.enums import AuthenticationFactor
33

44
client = Client()
55

@@ -10,4 +10,4 @@ client = Client()
1010

1111
account = Account(client)
1212

13-
result = account.create2_fa_challenge(.TOTP)
13+
result = account.create2_fa_challenge(AuthenticationFactor.TOTP)

docs/examples/account/delete-authenticator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from appwrite.client import Client
2-
from Appwrite.enums import
2+
from Appwrite.enums import AuthenticatorType
33

44
client = Client()
55

@@ -11,4 +11,4 @@ client = Client()
1111

1212
account = Account(client)
1313

14-
result = account.delete_authenticator(.TOTP, '[OTP]')
14+
result = account.delete_authenticator(AuthenticatorType.TOTP, '[OTP]')

docs/examples/account/verify-authenticator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from appwrite.client import Client
2-
from Appwrite.enums import
2+
from Appwrite.enums import AuthenticatorType
33

44
client = Client()
55

@@ -11,4 +11,4 @@ client = Client()
1111

1212
account = Account(client)
1313

14-
result = account.verify_authenticator(.TOTP, '[OTP]')
14+
result = account.verify_authenticator(AuthenticatorType.TOTP, '[OTP]')

docs/examples/users/delete-authenticator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from appwrite.client import Client
2-
from Appwrite.enums import
2+
from Appwrite.enums import AuthenticatorType
33

44
client = Client()
55

@@ -11,4 +11,4 @@ client = Client()
1111

1212
users = Users(client)
1313

14-
result = users.delete_authenticator('[USER_ID]', .TOTP, '[OTP]')
14+
result = users.delete_authenticator('[USER_ID]', AuthenticatorType.TOTP, '[OTP]')

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
setuptools.setup(
99
name = 'appwrite',
1010
packages = ['appwrite', 'appwrite/services'],
11-
version = '5.0.0-rc.2',
11+
version = '5.0.0-rc.3',
1212
license='BSD-3-Clause',
1313
description = 'Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API',
1414
long_description = long_description,
@@ -18,7 +18,7 @@
1818
maintainer = 'Appwrite Team',
1919
maintainer_email = '[email protected]',
2020
url = 'https://appwrite.io/support',
21-
download_url='https://github.com/appwrite/sdk-for-python/archive/5.0.0-rc.2.tar.gz',
21+
download_url='https://github.com/appwrite/sdk-for-python/archive/5.0.0-rc.3.tar.gz',
2222
# keywords = ['SOME', 'MEANINGFULL', 'KEYWORDS'],
2323
install_requires=[
2424
'requests',

0 commit comments

Comments
 (0)