Skip to content

Commit efed065

Browse files
committed
Initial commit
1 parent 288fa3f commit efed065

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
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.0',
10+
'x-sdk-version': 'appwrite:python:1.0.2',
1111
}
1212

1313
def set_self_signed(self, status=True):

appwrite/services/database.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ def list_documents(self, collection_id, filtersstring(4) ""[]""
9292
'content-type': 'application/json',
9393
}, params)
9494

95-
def create_document(self, collection_id, data, readstring(4) ""[]""
96-
=[], writestring(4) ""[]""
97-
=[], parent_document='', parent_property='', parent_property_type='assign'):
95+
def create_document(self, collection_id, data, read, write, parent_document='', parent_property='', parent_property_type='assign'):
9896
"""Create Document"""
9997

10098
params = {}
@@ -123,9 +121,7 @@ def get_document(self, collection_id, document_id):
123121
'content-type': 'application/json',
124122
}, params)
125123

126-
def update_document(self, collection_id, document_id, data, readstring(4) ""[]""
127-
=[], writestring(4) ""[]""
128-
=[]):
124+
def update_document(self, collection_id, document_id, data, read, write):
129125
"""Update Document"""
130126

131127
params = {}

appwrite/services/locale.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ def get_locale(self):
1313
'content-type': 'application/json',
1414
}, params)
1515

16+
def get_continents(self):
17+
"""List Countries"""
18+
19+
params = {}
20+
path = '/locale/continents'
21+
22+
return self.client.call('get', path, {
23+
'content-type': 'application/json',
24+
}, params)
25+
1626
def get_countries(self):
1727
"""List Countries"""
1828

appwrite/services/storage.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ def get_file(self, file_id):
4444
'content-type': 'application/json',
4545
}, params)
4646

47-
def update_file(self, file_id, readstring(4) ""[]""
48-
=[], writestring(4) ""[]""
49-
=[], folder_id=''):
47+
def update_file(self, file_id, read, write, folder_id=''):
5048
"""Update File"""
5149

5250
params = {}

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
setup(
44
name = 'appwrite',
55
packages = ['appwrite'],
6-
version = '1.0.0',
6+
version = '1.0.2',
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 = 'team@appwrite.io',
1111
maintainer = 'Appwrite Team',
1212
maintainer_email = 'team@appwrite.io',
1313
url = 'https://appwrite.io/support',
14-
download_url='https://github.com/appwrite/sdk-for-python/archive/1.0.0.tar.gz',
14+
download_url='https://github.com/appwrite/sdk-for-python/archive/1.0.2.tar.gz',
1515
# keywords = ['SOME', 'MEANINGFULL', 'KEYWORDS'],
1616
install_requires=[
1717
'requests',

0 commit comments

Comments
 (0)