Updated SDKs

This commit is contained in:
eldadfux committed 2019-11-20 21:01:20 +02:00
1 parent c202a383ca
commit ccd71a4a52
15 files changed
+62 -33

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ class Client:
self._endpoint = 'https://appwrite.io/v1'
self._global_headers = {
'content-type': '',
'x-sdk-version': 'appwrite:python:1.0.4',
'x-sdk-version': 'appwrite:python:0.0.1',
}
def set_self_signed(self, status=True):
@@ -3,6 +3,9 @@ from ..service import Service
class Account(Service):
def __init__(self, client):
super(Account, self).__init__(client)
def get(self):
"""Get Account"""
@@ -3,6 +3,9 @@ from ..service import Service
class Auth(Service):
def __init__(self, client):
super(Auth, self).__init__(client)
def login(self, email, password, success='', failure=''):
"""Login"""
@@ -3,6 +3,9 @@ from ..service import Service
class Avatars(Service):
def __init__(self, client):
super(Avatars, self).__init__(client)
def get_browser(self, code, width=100, height=100, quality=100):
"""Get Browser Icon"""
@@ -3,6 +3,9 @@ from ..service import Service
class Database(Service):
def __init__(self, client):
super(Database, self).__init__(client)
def list_collections(self, search='', limit=25, offset=0, order_type='ASC'):
"""List Collections"""
@@ -3,6 +3,9 @@ from ..service import Service
class Locale(Service):
def __init__(self, client):
super(Locale, self).__init__(client)
def get_locale(self):
"""Get User Locale"""
@@ -3,6 +3,9 @@ from ..service import Service
class Projects(Service):
def __init__(self, client):
super(Projects, self).__init__(client)
def list_projects(self):
"""List Projects"""
@@ -3,6 +3,9 @@ from ..service import Service
class Storage(Service):
def __init__(self, client):
super(Storage, self).__init__(client)
def list_files(self, search='', limit=25, offset=0, order_type='ASC'):
"""List Files"""
@@ -3,6 +3,9 @@ from ..service import Service
class Teams(Service):
def __init__(self, client):
super(Teams, self).__init__(client)
def list_teams(self, search='', limit=25, offset=0, order_type='ASC'):
"""List Teams"""
@@ -3,6 +3,9 @@ from ..service import Service
class Users(Service):
def __init__(self, client):
super(Users, self).__init__(client)
def list_users(self, search='', limit=25, offset=0, order_type='ASC'):
"""List Users"""
+2
View File
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
+7 -7
View File
@@ -1,9 +1,9 @@
from distutils.core import setup
import setuptools
setup(
setuptools.setup(
name = 'appwrite',
packages = ['appwrite'],
version = '1.0.4',
packages = ['appwrite', 'appwrite/services'],
version = '0.0.1',
license='BSD-3-Clause',
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)',
author = 'Appwrite Team',
@@ -11,13 +11,13 @@ setup(
maintainer = 'Appwrite Team',
maintainer_email = 'team@appwrite.io',
url = 'https://appwrite.io/support',
download_url='https://github.com/appwrite/sdk-for-python/archive/1.0.4.tar.gz',
download_url='https://github.com/appwrite/sdk-for-python/archive/0.0.1.tar.gz',
# keywords = ['SOME', 'MEANINGFULL', 'KEYWORDS'],
install_requires=[
'requests',
],
classifiers=[
'Development Status :: 5 - PRODUCTION/STABLE',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Environment :: Web Environment',
'Topic :: Software Development',
@@ -28,4 +28,4 @@ setup(
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
)
)