Skip to content

Commit 1c585dc

Browse files
committed
Initial commit
1 parent f9f4727 commit 1c585dc

File tree

12 files changed

+37
-8
lines changed

12 files changed

+37
-8
lines changed

appwrite/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def __init__(self):
77
self._endpoint = 'https://appwrite.io/v1'
88
self._global_headers = {
99
'content-type': '',
10-
'x-sdk-version': 'appwrite:python:1.0.4',
10+
'x-sdk-version': 'appwrite:python:0.0.1',
1111
}
1212

1313
def set_self_signed(self, status=True):

appwrite/services/account.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
class Account(Service):
55

6+
def __init__(self, client):
7+
super(Account, self).__init__(client)
8+
69
def get(self):
710
"""Get Account"""
811

appwrite/services/auth.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
class Auth(Service):
55

6+
def __init__(self, client):
7+
super(Auth, self).__init__(client)
8+
69
def login(self, email, password, success='', failure=''):
710
"""Login"""
811

appwrite/services/avatars.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
class Avatars(Service):
55

6+
def __init__(self, client):
7+
super(Avatars, self).__init__(client)
8+
69
def get_browser(self, code, width=100, height=100, quality=100):
710
"""Get Browser Icon"""
811

appwrite/services/database.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
class Database(Service):
55

6+
def __init__(self, client):
7+
super(Database, self).__init__(client)
8+
69
def list_collections(self, search='', limit=25, offset=0, order_type='ASC'):
710
"""List Collections"""
811

appwrite/services/locale.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
class Locale(Service):
55

6+
def __init__(self, client):
7+
super(Locale, self).__init__(client)
8+
69
def get_locale(self):
710
"""Get User Locale"""
811

appwrite/services/projects.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
class Projects(Service):
55

6+
def __init__(self, client):
7+
super(Projects, self).__init__(client)
8+
69
def list_projects(self):
710
"""List Projects"""
811

appwrite/services/storage.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
class Storage(Service):
55

6+
def __init__(self, client):
7+
super(Storage, self).__init__(client)
8+
69
def list_files(self, search='', limit=25, offset=0, order_type='ASC'):
710
"""List Files"""
811

appwrite/services/teams.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
class Teams(Service):
55

6+
def __init__(self, client):
7+
super(Teams, self).__init__(client)
8+
69
def list_teams(self, search='', limit=25, offset=0, order_type='ASC'):
710
"""List Teams"""
811

appwrite/services/users.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
class Users(Service):
55

6+
def __init__(self, client):
7+
super(Users, self).__init__(client)
8+
69
def list_users(self, search='', limit=25, offset=0, order_type='ASC'):
710
"""List Users"""
811

0 commit comments

Comments
 (0)