Skip to content

Commit

Permalink
Merge pull request #128 from N4S4/backward_compatibility
Browse files Browse the repository at this point in the history
added backward compatibility
  • Loading branch information
N4S4 committed Apr 5, 2023
2 parents b5d30f8 + e4087f6 commit d44dece
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='synology-api',
version='0.6.1',
version='0.6.2',
packages=find_packages(exclude=['tests*']),
license='MIT',
description='Python Synology API Wrapper',
Expand Down
1 change: 1 addition & 0 deletions synology_api/audiostation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional
from . import auth as syn

Expand Down
1 change: 1 addition & 0 deletions synology_api/auth.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional
import requests
from .error_codes import error_codes, CODE_SUCCESS, download_station_error_codes, file_station_error_codes
Expand Down
1 change: 1 addition & 0 deletions synology_api/core_active_backup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional
from . import base_api_core

Expand Down
1 change: 1 addition & 0 deletions synology_api/core_backup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional
from . import base_api_core

Expand Down
1 change: 1 addition & 0 deletions synology_api/core_certificate.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from io import BytesIO
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions synology_api/core_sys_info.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional
from . import base_api_core

Expand Down
1 change: 1 addition & 0 deletions synology_api/dhcp_server.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional
from . import base_api_core

Expand Down
1 change: 1 addition & 0 deletions synology_api/directory_server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""directory_server.py works with base_api_core to provide AD capabilities."""
from __future__ import annotations
import json
from typing import List, Optional, Any
from . import base_api_core
Expand Down
1 change: 1 addition & 0 deletions synology_api/docker_api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional
from . import base_api_core

Expand Down
1 change: 1 addition & 0 deletions synology_api/downloadstation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional, Any
from . import auth as syn

Expand Down
1 change: 1 addition & 0 deletions synology_api/drive_admin_console.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional
from . import base_api_core

Expand Down
1 change: 1 addition & 0 deletions synology_api/error_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# NOTE: https://global.synologydownload.com/download/Document/Software/DeveloperGuide/Package/Calendar/2.4/enu
# /Synology_Calendar_API_Guide_enu.pdf, Refers to common error code # 160, "Insufficient application privilege" Page 10.
from __future__ import annotations

CODE_SUCCESS = 0
CODE_UNKNOWN = 9999
Expand Down
1 change: 1 addition & 0 deletions synology_api/filestation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional, Any
import os
import time
Expand Down
1 change: 1 addition & 0 deletions synology_api/log_center.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional
from . import base_api_core

Expand Down
1 change: 1 addition & 0 deletions synology_api/notestation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional
from . import base_api_core

Expand Down
1 change: 1 addition & 0 deletions synology_api/oauth.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional
from . import base_api_core

Expand Down
1 change: 1 addition & 0 deletions synology_api/photos.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional, Any
from . import auth as syn
import json
Expand Down
1 change: 1 addition & 0 deletions synology_api/security_advisor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional
from . import base_api_core

Expand Down
1 change: 1 addition & 0 deletions synology_api/universal_search.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional, Any
from synology_api import auth

Expand Down
1 change: 1 addition & 0 deletions synology_api/usb_copy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional
from . import base_api_core

Expand Down
1 change: 1 addition & 0 deletions synology_api/virtualization.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional, Any
from . import auth as syn

Expand Down
1 change: 1 addition & 0 deletions synology_api/vpn.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from typing import Optional
from . import base_api_core

Expand Down

0 comments on commit d44dece

Please sign in to comment.