diff --git a/app/sdks/dart/.packages b/app/sdks/dart/.packages index 40d4f27ac..c979bcd22 100644 --- a/app/sdks/dart/.packages +++ b/app/sdks/dart/.packages @@ -1,4 +1,4 @@ -# Generated by pub on 2019-11-20 20:51:12.534762. +# Generated by pub on 2019-11-20 21:00:47.159698. charcode:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.2/lib/ collection:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/collection-1.14.12/lib/ cookie_jar:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/cookie_jar-1.0.1/lib/ diff --git a/app/sdks/python/appwrite/client.py b/app/sdks/python/appwrite/client.py index b64093220..66ee922b5 100644 --- a/app/sdks/python/appwrite/client.py +++ b/app/sdks/python/appwrite/client.py @@ -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): diff --git a/app/sdks/python/appwrite/services/account.py b/app/sdks/python/appwrite/services/account.py index 53394a3e1..4b38e4a82 100644 --- a/app/sdks/python/appwrite/services/account.py +++ b/app/sdks/python/appwrite/services/account.py @@ -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""" diff --git a/app/sdks/python/appwrite/services/auth.py b/app/sdks/python/appwrite/services/auth.py index 9f92b9cab..1a970252d 100644 --- a/app/sdks/python/appwrite/services/auth.py +++ b/app/sdks/python/appwrite/services/auth.py @@ -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""" diff --git a/app/sdks/python/appwrite/services/avatars.py b/app/sdks/python/appwrite/services/avatars.py index 2f68663b6..cd998c663 100644 --- a/app/sdks/python/appwrite/services/avatars.py +++ b/app/sdks/python/appwrite/services/avatars.py @@ -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""" diff --git a/app/sdks/python/appwrite/services/database.py b/app/sdks/python/appwrite/services/database.py index 84149225c..7a85d07d5 100644 --- a/app/sdks/python/appwrite/services/database.py +++ b/app/sdks/python/appwrite/services/database.py @@ -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""" diff --git a/app/sdks/python/appwrite/services/locale.py b/app/sdks/python/appwrite/services/locale.py index f00763fc7..4982618c9 100644 --- a/app/sdks/python/appwrite/services/locale.py +++ b/app/sdks/python/appwrite/services/locale.py @@ -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""" diff --git a/app/sdks/python/appwrite/services/projects.py b/app/sdks/python/appwrite/services/projects.py index 303ca7e43..838b14e37 100644 --- a/app/sdks/python/appwrite/services/projects.py +++ b/app/sdks/python/appwrite/services/projects.py @@ -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""" diff --git a/app/sdks/python/appwrite/services/storage.py b/app/sdks/python/appwrite/services/storage.py index b15084bf2..1ac360137 100644 --- a/app/sdks/python/appwrite/services/storage.py +++ b/app/sdks/python/appwrite/services/storage.py @@ -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""" diff --git a/app/sdks/python/appwrite/services/teams.py b/app/sdks/python/appwrite/services/teams.py index 9a72a4d8c..d30a6e71d 100644 --- a/app/sdks/python/appwrite/services/teams.py +++ b/app/sdks/python/appwrite/services/teams.py @@ -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""" diff --git a/app/sdks/python/appwrite/services/users.py b/app/sdks/python/appwrite/services/users.py index 0f15828bd..79e08e567 100644 --- a/app/sdks/python/appwrite/services/users.py +++ b/app/sdks/python/appwrite/services/users.py @@ -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""" diff --git a/app/sdks/python/setup.cfg b/app/sdks/python/setup.cfg new file mode 100644 index 000000000..224a77957 --- /dev/null +++ b/app/sdks/python/setup.cfg @@ -0,0 +1,2 @@ +[metadata] +description-file = README.md \ No newline at end of file diff --git a/app/sdks/python/setup.py b/app/sdks/python/setup.py index 8736a170e..687bd7d75 100644 --- a/app/sdks/python/setup.py +++ b/app/sdks/python/setup.py @@ -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', ], -) \ No newline at end of file +) diff --git a/app/tasks/sdks.php b/app/tasks/sdks.php index 71e4fb631..67ccbf404 100644 --- a/app/tasks/sdks.php +++ b/app/tasks/sdks.php @@ -72,7 +72,7 @@ $cli 'platform' => 'server', ], 'python' => [ - 'version' => '1.0.4', + 'version' => '0.0.1', 'result' => __DIR__.'/../sdks/python/', 'gitURL' => 'https://github.com/appwrite/sdk-for-python.git', 'gitRepo' => 'git@github.com:appwrite/sdk-for-python.git', diff --git a/composer.lock b/composer.lock index be90fe90d..f5f7a5c29 100644 --- a/composer.lock +++ b/composer.lock @@ -12,12 +12,12 @@ "source": { "type": "git", "url": "https://github.com/appwrite/sdk-for-php.git", - "reference": "01e6c677412f0e5645201efae1f6c72f375382f4" + "reference": "456248eec6af3541760468fea3e1708bf21a80ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-for-php/zipball/01e6c677412f0e5645201efae1f6c72f375382f4", - "reference": "01e6c677412f0e5645201efae1f6c72f375382f4", + "url": "https://api.github.com/repos/appwrite/sdk-for-php/zipball/456248eec6af3541760468fea3e1708bf21a80ed", + "reference": "456248eec6af3541760468fea3e1708bf21a80ed", "shasum": "" }, "require": { @@ -39,7 +39,7 @@ "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)", - "time": "2019-11-02T14:57:16+00:00" + "time": "2019-11-20T18:50:32+00:00" }, { "name": "appwrite/php-clamav", @@ -92,7 +92,7 @@ "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator", - "reference": "2abc3444c1a70fad6a5e9f1689e0c12a75d56d9d" + "reference": "6b2e1dc10c5c7b0d31521ac0b1ae1f70b8eac89d" }, "require": { "ext-curl": "*", @@ -122,7 +122,7 @@ } ], "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", - "time": "2019-11-07T05:09:16+00:00" + "time": "2019-11-20T18:58:05+00:00" }, { "name": "bacon/bacon-qr-code", @@ -1440,12 +1440,12 @@ "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "34a2a74596cfa6fb8f32415bc97f505d9f29bb8f" + "reference": "aecce3d92ec0f860935f940f640223fa0e90cce8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/34a2a74596cfa6fb8f32415bc97f505d9f29bb8f", - "reference": "34a2a74596cfa6fb8f32415bc97f505d9f29bb8f", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/aecce3d92ec0f860935f940f640223fa0e90cce8", + "reference": "aecce3d92ec0f860935f940f640223fa0e90cce8", "shasum": "" }, "require": { @@ -1499,7 +1499,7 @@ "keywords": [ "templating" ], - "time": "2019-11-15T20:27:23+00:00" + "time": "2019-11-18T17:29:44+00:00" }, { "name": "utopia-php/abuse", @@ -2458,12 +2458,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "909e50ab13df443fa7ba2d1e4c990edf38ed02f8" + "reference": "d2666181bc3c8ea5ad096f3eb7e4f1ad742c199f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/909e50ab13df443fa7ba2d1e4c990edf38ed02f8", - "reference": "909e50ab13df443fa7ba2d1e4c990edf38ed02f8", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d2666181bc3c8ea5ad096f3eb7e4f1ad742c199f", + "reference": "d2666181bc3c8ea5ad096f3eb7e4f1ad742c199f", "shasum": "" }, "require": { @@ -2534,7 +2534,7 @@ "testing", "xunit" ], - "time": "2019-11-15T08:22:24+00:00" + "time": "2019-11-17T15:10:13+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", @@ -2651,12 +2651,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "2ce6675fe77612cce2a49d0cecb4e7afead64323" + "reference": "16e54fbc971c14d98779b9c3b22572178ff9411f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/2ce6675fe77612cce2a49d0cecb4e7afead64323", - "reference": "2ce6675fe77612cce2a49d0cecb4e7afead64323", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/16e54fbc971c14d98779b9c3b22572178ff9411f", + "reference": "16e54fbc971c14d98779b9c3b22572178ff9411f", "shasum": "" }, "require": { @@ -2664,7 +2664,7 @@ }, "require-dev": { "phpunit/phpunit": "^7.5 || ^8.0", - "symfony/process": "^2 || ^3.3 || ^4" + "symfony/process": "^2 || ^3.3 || ^4 || ^5" }, "type": "library", "extra": { @@ -2699,7 +2699,7 @@ "unidiff", "unified diff" ], - "time": "2019-10-23T09:06:00+00:00" + "time": "2019-11-18T19:26:59+00:00" }, { "name": "sebastian/environment", @@ -2707,12 +2707,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "0f73ef4aa2d8a5e00393c06729012a50845e9e4c" + "reference": "464c90d7bdf5ad4e8a6aea15c091fec0603d4368" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/0f73ef4aa2d8a5e00393c06729012a50845e9e4c", - "reference": "0f73ef4aa2d8a5e00393c06729012a50845e9e4c", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/464c90d7bdf5ad4e8a6aea15c091fec0603d4368", + "reference": "464c90d7bdf5ad4e8a6aea15c091fec0603d4368", "shasum": "" }, "require": { @@ -2752,7 +2752,7 @@ "environment", "hhvm" ], - "time": "2019-10-23T09:05:42+00:00" + "time": "2019-11-20T08:46:58+00:00" }, { "name": "sebastian/exporter",