Skip to content

Commit 1c585dc

Browse files
committed
Initial commit
1 parent f9f4727 commit 1c585dc

12 files changed

+37
-8
lines changed

appwrite/client.py

+1-1
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

+3
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

+3
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

+3
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

+3
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

+3
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

+3
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

+3
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

+3
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

+3
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

setup.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = README.md

setup.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
from distutils.core import setup
1+
import setuptools
22

3-
setup(
3+
setuptools.setup(
44
name = 'appwrite',
5-
packages = ['appwrite'],
6-
version = '1.0.4',
5+
packages = ['appwrite', 'appwrite/services'],
6+
version = '0.0.1',
77
license='BSD-3-Clause',
88
description = 'Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)',
99
author = 'Appwrite Team',
1010
author_email = '[email protected]',
1111
maintainer = 'Appwrite Team',
1212
maintainer_email = '[email protected]',
1313
url = 'https://appwrite.io/support',
14-
download_url='https://github.com/appwrite/sdk-for-python/archive/1.0.4.tar.gz',
14+
download_url='https://github.com/appwrite/sdk-for-python/archive/0.0.1.tar.gz',
1515
# keywords = ['SOME', 'MEANINGFULL', 'KEYWORDS'],
1616
install_requires=[
1717
'requests',
1818
],
1919
classifiers=[
20-
'Development Status :: 5 - PRODUCTION/STABLE',
20+
'Development Status :: 5 - Production/Stable',
2121
'Intended Audience :: Developers',
2222
'Environment :: Web Environment',
2323
'Topic :: Software Development',
@@ -28,4 +28,4 @@
2828
'Programming Language :: Python :: 3.6',
2929
'Programming Language :: Python :: 3.7',
3030
],
31-
)
31+
)

0 commit comments

Comments
 (0)