83 Commits

Author SHA1 Message Date
d93efc1d3e Release 0.7.3 0.7.3 2020-04-29 12:28:48 +02:00
adba2c3084 Fix : DSM 5 storage "KeyError: 'data'" (#39) 2020-04-29 12:27:44 +02:00
5aefe18413 Release 0.7.2 0.7.2 2020-04-28 23:04:45 +02:00
f5d2d209d3 Merge pull request #36 from Quentame/storage/fix-dsm-5
Fix : DSM 5 can't fetch Storage data
Add DSM 5 tests + fix DSM 5 issues
2020-04-28 23:01:30 +02:00
4096d7886b Add DSM 5 tests + fix DSM 5 issues 2020-04-28 22:56:51 +02:00
aa57f9beba Fix : DSM 5 can't fetch Storage data 2020-04-28 13:59:23 +02:00
15697152cc Populated test data from DSM 5.2-5967 Update 9 (#37)
Co-authored-by: aaska <aaska@users.noreply.github.com>

Co-authored-by: Stanislav Toropovskyi <48147949+stast1@users.noreply.github.com>
2020-04-28 13:58:29 +02:00
4d9897a4ca Release 0.7.1 0.7.1 2020-04-26 19:14:03 +02:00
90a3d2fc16 Disable syno_token at authentication (#35) 2020-04-26 19:08:05 +02:00
c07b1b3f97 Remove dsm_version from README 2020-04-22 14:10:25 +02:00
e00df962c4 Release 0.7.0 0.7.0 2020-04-22 14:05:26 +02:00
0622bcf560 Refactor requests (#33)
* API discovery (SYNO.API.Info) + use Exceptions

- remove dsm_version
- use SynologyDSMRequestException for failed requests

* _discover_apis any time

* simplify requests

- Add api.request(api, method, params=None)

* Add connection failed tests

* Finalized ?

* Fix SynologyDSMRequestException not beeing SynologyDSMException

* Fix SynologyDSMAPINotExistsException not beeing SynologyDSMException

* Add Virtual Machine Manager API documentation

* Can get and post request

- Add error handling by API code

* Pylint

* Add get + post tests + SynologyDSMAPIErrorException
2020-04-22 14:00:27 +02:00
6f770825df Release 0.6.0 0.6.0 2020-04-16 22:07:09 +02:00
e393b1282c Add SYNO.API.Info to test constants + reorganize test consts (#31) 2020-04-14 14:01:58 +02:00
0f0e8b6b55 Fix DSM 5 SynoDSMInformation API end point (#30) 2020-04-13 23:34:40 +02:00
3e28d2049a Add two-step authentication (2SA) login (#29)
+ add login exceptions
+ add Black params
+ add official references creation-update dates
+ add login 2SA tests
+ remove useless "_sid" url prepend
+ remove _execute_get_url append_sid param
+ Require 2SA once, remember granted device ==> skip OTP checking
+ add device_token property to save connected device
2020-04-13 00:26:14 +02:00
a68ef9fe49 Separate DSM 6 test consts + prepare to test DSM 5 (#27) 2020-04-09 21:45:52 +02:00
6c4bcd32c1 Add some API official references (#24)
* Update README.rst

Added some API official references

Co-Authored-By: Quentame <polletquentin74@me.com>
2020-04-05 13:05:40 +02:00
57d1a733c8 Setup update (#25) 2020-04-02 20:00:47 +02:00
697cef02a2 Release 0.5.0 0.5.0 2020-03-31 23:23:13 +02:00
b09d7531bd Fix : build with multiple packages 2020-03-31 23:22:42 +02:00
aa9bba8814 Add tests + some fixes (#23)
* Add tests + some fixes

Fixes:
- [utilization] cpu_total_load returns `None` if one load is 0
- [storage] volume_disk_temp_avg + volume_disk_temp_max were global, not volume related

Add:
- [storage] env
- [storage] storage_pools

Changes:
- api.password is now private
- api.storage_url is now private
- use API_KEY on each of APIs/services

* Fix encoding

* Use future division

* Add test_disk + test_volume to check error handling cases
2020-03-30 23:07:54 +02:00
b80b1f3cae Update README to respect next release (#22) 2020-03-29 19:17:20 +02:00
d37f32eaf6 Add API documentation repo (#21) 2020-03-29 12:38:29 +02:00
2fc1977874 Simplify setup read file + update to ProtoThis (#20) 2020-03-29 12:28:01 +02:00
bb5c3f02c5 Use pylint instead of flake8 (#18) 2020-03-29 12:24:42 +02:00
606c28ad5b Fix build badge (#19) 2020-03-28 10:05:09 +01:00
2827c6f046 Back is black (#17)
* Format with black
2020-03-26 00:37:28 +01:00
4666a532dc Separate module per API class + add .gitignore (#16) 2020-03-26 00:11:55 +01:00
adc62de793 Add PyPi badges + Add long_description, python_requires, license, & classifiers to setup (#15)
+ format setup to use 4 spaces indent
2020-03-25 20:34:15 +01:00
996d463a41 Fix CI + add Python 3.8 test env (#14)
Use 3.8 to deploy
2020-03-25 17:57:18 +01:00
923d1c06c9 Merge pull request #13 from Quentame/information
Add SynoInformation (SYNO.DSM.Info) API
2020-03-25 11:07:39 +01:00
31c918179b Add SynoInformation (SYNO.DSM.Info) API 2020-03-25 09:25:46 +01:00
38f8920830 Merge pull request #12 from Quentame/login
Make login unitary, looking good
2020-03-25 08:52:32 +01:00
a4272457a8 Make login unitary 2020-03-18 13:49:57 +01:00
8cda077a64 Updated Readme
Updated Setup
Prepared for PyPi release
0.4.0
2020-01-20 14:51:20 -05:00
ab8b63aa66 Merge pull request #9 from aaska/master
Added reverse compatibility with DSM 5.2
2020-01-20 20:42:32 +01:00
b343826c33 Merge pull request #10 from Quentame/fix/get_url
Make _get_url actually returning a response when retry_on_error=True
2020-01-20 20:34:10 +01:00
e74d103dd6 Make _get_url actually returning a response when retry_on_error=True 2020-01-15 12:30:12 +01:00
a4f57ff845 Adding documentation on new constructor parameter 2020-01-13 17:19:44 +01:00
36d9efcad5 - refactored names
- code cleanup
- changed parameter name
2020-01-13 09:21:02 +01:00
4866dbc855 Added reverse compatibility with DSM 5.2 2020-01-12 19:04:51 +01:00
599064b5dd Merge pull request #7 from kuchel77/master
Update SynologyDSM.py
2019-10-14 19:42:18 +02:00
5e47eee2ad Update SynologyDSM.py
This fixes the average temperature and maximum temperature for the disks.
2019-10-01 18:02:21 +10:00
a5446a052f Update setup.py 0.2.0 2018-07-02 22:03:51 +02:00
24bbce7973 Update README.rst 2018-07-02 21:59:01 +02:00
f9daa59546 Update README.rst 2018-07-02 21:57:16 +02:00
4363ded31c Merge pull request #6 from tchellomello/add_https_support
Added support to HTTPS URLs and for special characters in the username or password, verified and working
2018-07-02 21:54:43 +02:00
b7a3a2b033 Added support to HTTPS urls and for special characters in the username or password 2018-07-02 14:30:55 -04:00
dca5413444 Updated Readme File 0.1.0 2016-10-27 18:52:24 +00:00