Skip to content

Commit 8c92970

Browse files
Merge pull request #105 from appwrite/dev
feat: add platform agnostic uname() for user agent
2 parents 5c7f8e2 + 7b23b5f commit 8c92970

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

appwrite/client.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import io
22
import json
33
import os
4+
import platform
45
import requests
56
from .input_file import InputFile
67
from .exception import AppwriteException
@@ -13,11 +14,11 @@ def __init__(self):
1314
self._endpoint = 'https://cloud.appwrite.io/v1'
1415
self._global_headers = {
1516
'content-type': '',
16-
'user-agent' : f'AppwritePythonSDK/9.0.1 ({os.uname().sysname}; {os.uname().version}; {os.uname().machine})',
17+
'user-agent' : f'AppwritePythonSDK/9.0.2 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
1718
'x-sdk-name': 'Python',
1819
'x-sdk-platform': 'server',
1920
'x-sdk-language': 'python',
20-
'x-sdk-version': '9.0.1',
21+
'x-sdk-version': '9.0.2',
2122
'X-Appwrite-Response-Format' : '1.6.0',
2223
}
2324

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'appwrite/encoders',
1414
'appwrite/enums',
1515
],
16-
version = '9.0.1',
16+
version = '9.0.2',
1717
license='BSD-3-Clause',
1818
description = 'Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API',
1919
long_description = long_description,
@@ -23,7 +23,7 @@
2323
maintainer = 'Appwrite Team',
2424
maintainer_email = '[email protected]',
2525
url = 'https://appwrite.io/support',
26-
download_url='https://github.com/appwrite/sdk-for-python/archive/9.0.1.tar.gz',
26+
download_url='https://github.com/appwrite/sdk-for-python/archive/9.0.2.tar.gz',
2727
install_requires=[
2828
'requests',
2929
],

0 commit comments

Comments
 (0)