Compare commits
16 Commits
5c977e3732
...
v0.9.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 39b2c3c776 | |||
| 733ef83127 | |||
| b53fdc07f8 | |||
| eb260b7a7e | |||
| 6db3afcd28 | |||
| 00c66320b5 | |||
| 5823012259 | |||
| 7dec38109a | |||
| b6ede1af3b | |||
| e38a402d44 | |||
| e59cd77908 | |||
| 6ab8749f11 | |||
| 13df6822c8 | |||
| b78c503b31 | |||
| e69b2dfab9 | |||
| f168ad9e47 |
@@ -11,7 +11,7 @@ class GeoRideAccount:
|
||||
""" Account object representation """
|
||||
def __init__(self, account_id, email, is_admin, auth_token):
|
||||
self._account_id = account_id
|
||||
self._email = email
|
||||
self._email = emailgit
|
||||
self._is_admin = is_admin
|
||||
self._auth_token = auth_token
|
||||
|
||||
|
||||
@@ -462,7 +462,7 @@ class GeoRideTracker(metaclass=JsonMgtMetaClass): # pylint: disable=R0904,R0902
|
||||
return self._ecall_crash_mode
|
||||
|
||||
@property
|
||||
def assistance_theft_activated(self):
|
||||
def _ssistance_theft_activated(self):
|
||||
""" assistanceTheftActivated property """
|
||||
return self._assistance_theft_activated
|
||||
|
||||
@@ -485,6 +485,13 @@ class GeoRideTracker(metaclass=JsonMgtMetaClass): # pylint: disable=R0904,R0902
|
||||
@classmethod
|
||||
def from_json(cls, json):
|
||||
"""return new object fromjson"""
|
||||
|
||||
"version": 3,
|
||||
"eCallCrashMode": "default",
|
||||
"assistanceTheftActivated": True,
|
||||
"model": "georide-3",
|
||||
"businessModel": "leasing",
|
||||
"hasTheftCaseOpened": False,
|
||||
|
||||
return GeoRideTracker(
|
||||
json['trackerId'], # Mandatory
|
||||
@@ -543,12 +550,7 @@ class GeoRideTracker(metaclass=JsonMgtMetaClass): # pylint: disable=R0904,R0902
|
||||
cls.json_field_protect(json,'softwareVersion', 1),
|
||||
cls.json_field_protect(json,'hasBeacon', False),
|
||||
cls.json_field_protect(json,'hasOutdatedBeacons', False),
|
||||
cls.json_field_protect(json,'eCallActivated', False),
|
||||
cls.json_field_protect(json,'eCallCrashMode'),
|
||||
cls.json_field_protect(json,'assistanceTheftActivated'),
|
||||
cls.json_field_protect(json,'model'),
|
||||
cls.json_field_protect(json,'businessModel'),
|
||||
cls.json_field_protect(json,'hasTheftCaseOpened'),
|
||||
cls.json_field_protect(json,'eCallActivated', False)
|
||||
)
|
||||
|
||||
def update_all_data(self, tracker):
|
||||
|
||||
6
setup.py
6
setup.py
@@ -19,19 +19,19 @@ CURRENT_DIR = os.path.dirname(__file__)
|
||||
setup(
|
||||
name='georideapilib',
|
||||
packages=['georideapilib', 'georideapilib.objects'], # this must be the same as the name above
|
||||
version='0.9.4',
|
||||
version='0.9.0',
|
||||
description='Lib to control GeoRide tracker devices with theire rest api',
|
||||
author='Matthieu DUVAL',
|
||||
author_email='georideapilib@duval-dev.fr',
|
||||
# use the URL to the github repo
|
||||
url='https://github.com/hacf/georide-api',
|
||||
download_url='https://codeload.github.com/hacf/georide-api/tar.gz/0.9.3',
|
||||
download_url='https://codeload.github.com/hacf/georide-api/tar.gz/0.8.1',
|
||||
keywords=['rest', 'georide', 'api', 'grutier', 'GeoRide'], # arbitrary keywords
|
||||
classifiers=[],
|
||||
install_requires=["python-socketio[client]==4.6.1"],
|
||||
tests_require=[
|
||||
'pytest>=3.7',
|
||||
'pytest-pep8',
|
||||
'pytest-pep8',
|
||||
'pytest-cov',
|
||||
'python-coveralls',
|
||||
'pylint',
|
||||
|
||||
Reference in New Issue
Block a user