Skip to content

Reorganization of the wrapper by apps#259

Draft
FBoissadier wants to merge 181 commits intoN4S4:a_new_wayfrom
FBoissadier:feature/reorganization-by-app
Draft

Reorganization of the wrapper by apps#259
FBoissadier wants to merge 181 commits intoN4S4:a_new_wayfrom
FBoissadier:feature/reorganization-by-app

Conversation

@FBoissadier
Copy link
Contributor

I would like to share the reorganization by app I started, I've talk a bit of it on telegram.
It's still in progress because there is a lot of think to do ^^' And I didn't get so much time now !
Maybe if you think it's a good idea you can merge it to a new branch, I think it sould not be in the master because it's not finished !

Here is a example of what would be the end user usage :

from synology_api.DSM import DSM
from decouple import config

USERNAME = config('USERNAME')
PASSWORD = config('PASSWORD')
IP = config('IP')
PORT = config('PORT')

dsm = DSM(
    IP,
    PORT,
    USERNAME,
    PASSWORD,
    secure=False,
    cert_verify=False,
    dsm_version=7,
    debug=True,
    otp_code=False
)

configs = [
    {
        "ifname": "ovs_eth1",
        "use_dhcp": True,
        "enable_ha_ip": False,
        "is_default_gateway": False,
        "mtu": 1500,
        "enable_vlan": False
    }
]
dsm.FileStation.get_info()
dsm.ControlPanel.InfoCenter.get_system_info()
dsm.ControlPanel.Network.get_ethernet_interface_list()
dsm.PackageCenter.get_package_center_infos()
dsm.PackageCenter.list_installed()





@FBoissadier FBoissadier marked this pull request as draft July 5, 2025 23:00
@N4S4
Copy link
Owner

N4S4 commented Jul 6, 2025

Hello I like that although is much less user intuitive, but I like the concept of using one configuration for all. I'll create another branch and we move from there

@FBoissadier
Copy link
Contributor Author

FBoissadier commented Jul 6, 2025

For the fact that it less user intuitive, goal is to organize the wrapper based on the DSM desktop :) For app I have done it per app, but for example I think for Surveillance Station we should do it same as Control Panel. But yeah for current user of the wrapper it will be less intuitive.
By the way you can still use each class individually if needed, just you need to init them with the IP, Port etc...

@N4S4 N4S4 changed the base branch from master to a_new_way July 9, 2025 20:11
acourtneybrown and others added 30 commits November 11, 2025 10:28
* upstream/master:
  Udpate get_file from filestation docstring. Based on the recent discution on telegram
…for_status

* origin/master:
  Add `noiseprotocol` package to `setup.py`
  Udpate get_file from filestation docstring. Based on the recent discution on telegram
Add `noiseprotocol` package to `setup.py`
Raise exception in `Authentication.request_data` if HTTP status code indicates error
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.14.1 to 3.14.2.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](nodeca/js-yaml@3.14.1...3.14.2)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 3.14.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…tation/js-yaml-3.14.2

chore(deps): bump js-yaml from 3.14.1 to 3.14.2 in /documentation
Bumps [node-forge](https://github.com/digitalbazaar/forge) from 1.3.1 to 1.3.2.
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md)
- [Commits](digitalbazaar/forge@v1.3.1...v1.3.2)

---
updated-dependencies:
- dependency-name: node-forge
  dependency-version: 1.3.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…tation/node-forge-1.3.2

chore(deps): bump node-forge from 1.3.1 to 1.3.2 in /documentation
Bumps [mdast-util-to-hast](https://github.com/syntax-tree/mdast-util-to-hast) from 13.2.0 to 13.2.1.
- [Release notes](https://github.com/syntax-tree/mdast-util-to-hast/releases)
- [Commits](syntax-tree/mdast-util-to-hast@13.2.0...13.2.1)

---
updated-dependencies:
- dependency-name: mdast-util-to-hast
  dependency-version: 13.2.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…tation/mdast-util-to-hast-13.2.1

chore(deps): bump mdast-util-to-hast from 13.2.0 to 13.2.1 in /documentation
Bumps [express](https://github.com/expressjs/express) from 4.21.2 to 4.22.1.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/v4.22.1/History.md)
- [Commits](expressjs/express@4.21.2...v4.22.1)

---
updated-dependencies:
- dependency-name: express
  dependency-version: 4.22.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…tation/express-4.22.1

chore(deps): bump express from 4.21.2 to 4.22.1 in /documentation
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](urllib3/urllib3@2.5.0...2.6.0)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.6.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
chore(deps): bump urllib3 from 2.5.0 to 2.6.0
Bumps the python-packages group with 1 update: [urllib3](https://github.com/urllib3/urllib3).


Updates `urllib3` from 2.6.0 to 2.6.1
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](urllib3/urllib3@2.6.0...2.6.1)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.6.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
...

Signed-off-by: dependabot[bot] <support@github.com>
…9e0978b55f

chore(deps): bump urllib3 from 2.6.0 to 2.6.1 in the python-packages group
Bumps the python-packages group with 1 update: [urllib3](https://github.com/urllib3/urllib3).


Updates `urllib3` from 2.6.1 to 2.6.2
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](urllib3/urllib3@2.6.1...2.6.2)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.6.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
...

Signed-off-by: dependabot[bot] <support@github.com>
…3c63e8caab

chore(deps): bump urllib3 from 2.6.1 to 2.6.2 in the python-packages group
#feat: Add RSS feed filter methods on downloadstation.py
fix error 'file not found error' on ds.create_task(file_path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants