yandexdisk 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. yandexdisk-0.0.1/LICENSE +21 -0
  2. yandexdisk-0.0.1/PKG-INFO +136 -0
  3. yandexdisk-0.0.1/README.md +112 -0
  4. yandexdisk-0.0.1/pyproject.toml +40 -0
  5. yandexdisk-0.0.1/setup.cfg +4 -0
  6. yandexdisk-0.0.1/src/yandexdisk/__init__.py +3 -0
  7. yandexdisk-0.0.1/src/yandexdisk/__main__.py +5 -0
  8. yandexdisk-0.0.1/src/yandexdisk/app.py +363 -0
  9. yandexdisk-0.0.1/src/yandexdisk/autostart.py +64 -0
  10. yandexdisk-0.0.1/src/yandexdisk/cli.py +243 -0
  11. yandexdisk-0.0.1/src/yandexdisk/daemon.py +215 -0
  12. yandexdisk-0.0.1/src/yandexdisk/diagnostics.py +183 -0
  13. yandexdisk-0.0.1/src/yandexdisk/icons.py +189 -0
  14. yandexdisk-0.0.1/src/yandexdisk/settings.py +130 -0
  15. yandexdisk-0.0.1/src/yandexdisk/status.py +178 -0
  16. yandexdisk-0.0.1/src/yandexdisk/theme.py +162 -0
  17. yandexdisk-0.0.1/src/yandexdisk/ui/__init__.py +0 -0
  18. yandexdisk-0.0.1/src/yandexdisk/ui/login.py +120 -0
  19. yandexdisk-0.0.1/src/yandexdisk/ui/pages/__init__.py +0 -0
  20. yandexdisk-0.0.1/src/yandexdisk/ui/pages/activity.py +231 -0
  21. yandexdisk-0.0.1/src/yandexdisk/ui/pages/overview.py +178 -0
  22. yandexdisk-0.0.1/src/yandexdisk/ui/pages/settings_pages.py +517 -0
  23. yandexdisk-0.0.1/src/yandexdisk/ui/pages/tools.py +293 -0
  24. yandexdisk-0.0.1/src/yandexdisk/ui/tray.py +210 -0
  25. yandexdisk-0.0.1/src/yandexdisk/ui/widgets.py +225 -0
  26. yandexdisk-0.0.1/src/yandexdisk/ui/window.py +141 -0
  27. yandexdisk-0.0.1/src/yandexdisk/ydconfig.py +173 -0
  28. yandexdisk-0.0.1/src/yandexdisk.egg-info/PKG-INFO +136 -0
  29. yandexdisk-0.0.1/src/yandexdisk.egg-info/SOURCES.txt +32 -0
  30. yandexdisk-0.0.1/src/yandexdisk.egg-info/dependency_links.txt +1 -0
  31. yandexdisk-0.0.1/src/yandexdisk.egg-info/entry_points.txt +3 -0
  32. yandexdisk-0.0.1/src/yandexdisk.egg-info/requires.txt +4 -0
  33. yandexdisk-0.0.1/src/yandexdisk.egg-info/top_level.txt +1 -0
  34. yandexdisk-0.0.1/tests/test_core.py +109 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Bayram Kotan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,136 @@
1
+ Metadata-Version: 2.4
2
+ Name: yandexdisk
3
+ Version: 0.0.1
4
+ Summary: System tray control center for the Yandex Disk console client on Linux
5
+ Author: Bayram Kotan
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/bayramkotan/yandexdisk
8
+ Project-URL: Issues, https://github.com/bayramkotan/yandexdisk/issues
9
+ Keywords: yandex,yandex-disk,cloud,sync,tray,linux,pyside6
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Environment :: X11 Applications :: Qt
12
+ Classifier: Intended Audience :: End Users/Desktop
13
+ Classifier: Operating System :: POSIX :: Linux
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: System :: Archiving :: Mirroring
16
+ Classifier: Topic :: Utilities
17
+ Requires-Python: >=3.10
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Requires-Dist: PySide6-Essentials>=6.6
21
+ Provides-Extra: test
22
+ Requires-Dist: pytest>=7; extra == "test"
23
+ Dynamic: license-file
24
+
25
+ # yandexdisk
26
+
27
+ A system tray control center for the official Yandex Disk console client (`yandex-disk`) on Linux.
28
+
29
+ The console client syncs well but has no interface. yandexdisk puts every daemon command and every
30
+ setting behind a tray icon and one window: start and stop sync, watch progress, open recently synced
31
+ files, share public links, edit excluded folders and the proxy, sign in, and find out why sync stopped.
32
+
33
+ > yandexdisk is an independent project. It is not made or endorsed by Yandex.
34
+
35
+ ## Install
36
+
37
+ 1. Install the Yandex Disk console client.
38
+
39
+ | Distribution | Command |
40
+ |---|---|
41
+ | Arch, CachyOS, Manjaro | `paru -S yandex-disk` |
42
+ | Debian, Ubuntu, Mint | `wget https://repo.yandex.ru/yandex-disk/yandex-disk_latest_amd64.deb && sudo apt install ./yandex-disk_latest_amd64.deb` |
43
+ | Fedora, openSUSE | `sudo dnf install https://repo.yandex.ru/yandex-disk/yandex-disk-latest.x86_64.rpm` |
44
+
45
+ 2. Install yandexdisk.
46
+
47
+ ```bash
48
+ pip install yandexdisk
49
+ # on distributions that protect the system Python (Arch, CachyOS, Debian 12+):
50
+ pip install --break-system-packages yandexdisk
51
+ ```
52
+
53
+ 3. Start it.
54
+
55
+ ```bash
56
+ yandexdisk # or the short name: yd
57
+ ```
58
+
59
+ To have it in the application menu and start it at login:
60
+
61
+ ```bash
62
+ yandexdisk install-desktop
63
+ yandexdisk autostart on
64
+ ```
65
+
66
+ GNOME needs the *AppIndicator and KStatusNotifierItem Support* extension to show tray icons.
67
+ KDE Plasma, XFCE, Cinnamon, MATE, Budgie and most tiling bar setups work out of the box.
68
+
69
+ ## The tray menu
70
+
71
+ | Item | What it does |
72
+ |---|---|
73
+ | Status, storage, transfer lines | Live state of the daemon, space used and current transfer |
74
+ | Error line | Shown only when the daemon reports an error; opens Diagnostics |
75
+ | Start sync / Stop sync | Starts or stops the daemon |
76
+ | Sync now | Asks the daemon to sync immediately |
77
+ | Restart daemon | Stop, then start, to pick up new settings |
78
+ | Open Yandex Disk folder / Open on the web | Local folder or disk.yandex.com |
79
+ | Recently synced | Last synced items; each opens, shows in folder, copies a public link or the path |
80
+ | Public links | Share a file or folder, copy recent links, manage links |
81
+ | Check for problems | Runs Diagnostics |
82
+ | Commands and log | Every daemon command plus the full log |
83
+ | Settings | Jumps straight to any settings page |
84
+ | Do not disturb | Holds all notifications |
85
+ | Quit | Quit and keep syncing, or quit and stop sync |
86
+
87
+ Left click opens the control center, middle click syncs now. Both are configurable.
88
+
89
+ ## The control center
90
+
91
+ - **Overview** — storage ring with live sync progress, numbers for used, free, trash and file size
92
+ limit, start/stop, sync now, and the latest synced items.
93
+ - **Activity** — every synced item the daemon reported, kept locally, with search and filters.
94
+ - **Public links** — share files and folders, copy, open or remove links.
95
+ - **General** — start at login, start or stop sync with the app, tray click actions, check intervals,
96
+ custom path to the daemon program.
97
+ - **Account** — sign in (device code flow driven from the window), sign out, storage summary.
98
+ - **Folders and sync mode** — sync folder, two-way or download-only modes, config and token files.
99
+ - **Excluded folders** — pick or type folders the daemon must skip.
100
+ - **Network** — system proxy, no proxy, or manual HTTP/HTTPS/SOCKS4/SOCKS5 proxy with login.
101
+ - **Notifications** — sync finished, new files, errors, start/stop, link copied, do not disturb.
102
+ - **Appearance** — light, dark or system theme; colored or monochrome tray icon.
103
+ - **Diagnostics** — checks the daemon, config, token, folder, exclusions, duplicate daemons, network,
104
+ inotify watch limit and free space, with a copyable fix for each problem.
105
+ - **Commands and log** — buttons for every daemon command, a free command line, and a filterable log.
106
+
107
+ Settings that belong to the daemon are written to its own `~/.config/yandex-disk/config.cfg`
108
+ (a `.bak` copy is kept). App settings live in `~/.config/yandexdisk/settings.json`; activity, links
109
+ and the log live in `~/.local/state/yandexdisk/`.
110
+
111
+ ## Command line
112
+
113
+ ```text
114
+ yandexdisk start the tray app
115
+ yandexdisk --hidden start in the tray without the window
116
+ yandexdisk --page network open the control center on a page
117
+ yandexdisk status [--json] daemon status
118
+ yandexdisk start | stop | restart | sync
119
+ yandexdisk publish PATH share and print the public link
120
+ yandexdisk unpublish PATH
121
+ yandexdisk login sign in from the terminal
122
+ yandexdisk doctor diagnostics report
123
+ yandexdisk open | web open the folder or the web disk
124
+ yandexdisk settings [PAGE] open a settings page in the running app
125
+ yandexdisk quit [--stop] quit the running tray app
126
+ yandexdisk autostart on|off|status
127
+ yandexdisk install-desktop
128
+ yandexdisk update upgrade from PyPI
129
+ yandexdisk --version also -v, -V, --Version
130
+ ```
131
+
132
+ `yd` works everywhere `yandexdisk` does.
133
+
134
+ ## License
135
+
136
+ MIT
@@ -0,0 +1,112 @@
1
+ # yandexdisk
2
+
3
+ A system tray control center for the official Yandex Disk console client (`yandex-disk`) on Linux.
4
+
5
+ The console client syncs well but has no interface. yandexdisk puts every daemon command and every
6
+ setting behind a tray icon and one window: start and stop sync, watch progress, open recently synced
7
+ files, share public links, edit excluded folders and the proxy, sign in, and find out why sync stopped.
8
+
9
+ > yandexdisk is an independent project. It is not made or endorsed by Yandex.
10
+
11
+ ## Install
12
+
13
+ 1. Install the Yandex Disk console client.
14
+
15
+ | Distribution | Command |
16
+ |---|---|
17
+ | Arch, CachyOS, Manjaro | `paru -S yandex-disk` |
18
+ | Debian, Ubuntu, Mint | `wget https://repo.yandex.ru/yandex-disk/yandex-disk_latest_amd64.deb && sudo apt install ./yandex-disk_latest_amd64.deb` |
19
+ | Fedora, openSUSE | `sudo dnf install https://repo.yandex.ru/yandex-disk/yandex-disk-latest.x86_64.rpm` |
20
+
21
+ 2. Install yandexdisk.
22
+
23
+ ```bash
24
+ pip install yandexdisk
25
+ # on distributions that protect the system Python (Arch, CachyOS, Debian 12+):
26
+ pip install --break-system-packages yandexdisk
27
+ ```
28
+
29
+ 3. Start it.
30
+
31
+ ```bash
32
+ yandexdisk # or the short name: yd
33
+ ```
34
+
35
+ To have it in the application menu and start it at login:
36
+
37
+ ```bash
38
+ yandexdisk install-desktop
39
+ yandexdisk autostart on
40
+ ```
41
+
42
+ GNOME needs the *AppIndicator and KStatusNotifierItem Support* extension to show tray icons.
43
+ KDE Plasma, XFCE, Cinnamon, MATE, Budgie and most tiling bar setups work out of the box.
44
+
45
+ ## The tray menu
46
+
47
+ | Item | What it does |
48
+ |---|---|
49
+ | Status, storage, transfer lines | Live state of the daemon, space used and current transfer |
50
+ | Error line | Shown only when the daemon reports an error; opens Diagnostics |
51
+ | Start sync / Stop sync | Starts or stops the daemon |
52
+ | Sync now | Asks the daemon to sync immediately |
53
+ | Restart daemon | Stop, then start, to pick up new settings |
54
+ | Open Yandex Disk folder / Open on the web | Local folder or disk.yandex.com |
55
+ | Recently synced | Last synced items; each opens, shows in folder, copies a public link or the path |
56
+ | Public links | Share a file or folder, copy recent links, manage links |
57
+ | Check for problems | Runs Diagnostics |
58
+ | Commands and log | Every daemon command plus the full log |
59
+ | Settings | Jumps straight to any settings page |
60
+ | Do not disturb | Holds all notifications |
61
+ | Quit | Quit and keep syncing, or quit and stop sync |
62
+
63
+ Left click opens the control center, middle click syncs now. Both are configurable.
64
+
65
+ ## The control center
66
+
67
+ - **Overview** — storage ring with live sync progress, numbers for used, free, trash and file size
68
+ limit, start/stop, sync now, and the latest synced items.
69
+ - **Activity** — every synced item the daemon reported, kept locally, with search and filters.
70
+ - **Public links** — share files and folders, copy, open or remove links.
71
+ - **General** — start at login, start or stop sync with the app, tray click actions, check intervals,
72
+ custom path to the daemon program.
73
+ - **Account** — sign in (device code flow driven from the window), sign out, storage summary.
74
+ - **Folders and sync mode** — sync folder, two-way or download-only modes, config and token files.
75
+ - **Excluded folders** — pick or type folders the daemon must skip.
76
+ - **Network** — system proxy, no proxy, or manual HTTP/HTTPS/SOCKS4/SOCKS5 proxy with login.
77
+ - **Notifications** — sync finished, new files, errors, start/stop, link copied, do not disturb.
78
+ - **Appearance** — light, dark or system theme; colored or monochrome tray icon.
79
+ - **Diagnostics** — checks the daemon, config, token, folder, exclusions, duplicate daemons, network,
80
+ inotify watch limit and free space, with a copyable fix for each problem.
81
+ - **Commands and log** — buttons for every daemon command, a free command line, and a filterable log.
82
+
83
+ Settings that belong to the daemon are written to its own `~/.config/yandex-disk/config.cfg`
84
+ (a `.bak` copy is kept). App settings live in `~/.config/yandexdisk/settings.json`; activity, links
85
+ and the log live in `~/.local/state/yandexdisk/`.
86
+
87
+ ## Command line
88
+
89
+ ```text
90
+ yandexdisk start the tray app
91
+ yandexdisk --hidden start in the tray without the window
92
+ yandexdisk --page network open the control center on a page
93
+ yandexdisk status [--json] daemon status
94
+ yandexdisk start | stop | restart | sync
95
+ yandexdisk publish PATH share and print the public link
96
+ yandexdisk unpublish PATH
97
+ yandexdisk login sign in from the terminal
98
+ yandexdisk doctor diagnostics report
99
+ yandexdisk open | web open the folder or the web disk
100
+ yandexdisk settings [PAGE] open a settings page in the running app
101
+ yandexdisk quit [--stop] quit the running tray app
102
+ yandexdisk autostart on|off|status
103
+ yandexdisk install-desktop
104
+ yandexdisk update upgrade from PyPI
105
+ yandexdisk --version also -v, -V, --Version
106
+ ```
107
+
108
+ `yd` works everywhere `yandexdisk` does.
109
+
110
+ ## License
111
+
112
+ MIT
@@ -0,0 +1,40 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "yandexdisk"
7
+ version = "0.0.1"
8
+ description = "System tray control center for the Yandex Disk console client on Linux"
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ authors = [{ name = "Bayram Kotan" }]
12
+ requires-python = ">=3.10"
13
+ dependencies = ["PySide6-Essentials>=6.6"]
14
+ keywords = ["yandex", "yandex-disk", "cloud", "sync", "tray", "linux", "pyside6"]
15
+ classifiers = [
16
+ "Development Status :: 3 - Alpha",
17
+ "Environment :: X11 Applications :: Qt",
18
+ "Intended Audience :: End Users/Desktop",
19
+ "Operating System :: POSIX :: Linux",
20
+ "Programming Language :: Python :: 3",
21
+ "Topic :: System :: Archiving :: Mirroring",
22
+ "Topic :: Utilities",
23
+ ]
24
+
25
+ [project.optional-dependencies]
26
+ test = ["pytest>=7"]
27
+
28
+ [project.urls]
29
+ Homepage = "https://github.com/bayramkotan/yandexdisk"
30
+ Issues = "https://github.com/bayramkotan/yandexdisk/issues"
31
+
32
+ [project.scripts]
33
+ yandexdisk = "yandexdisk.cli:main"
34
+ yd = "yandexdisk.cli:main"
35
+
36
+ [tool.setuptools.packages.find]
37
+ where = ["src"]
38
+
39
+ [tool.pytest.ini_options]
40
+ testpaths = ["tests"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ """yandexdisk — a system tray control center for the Yandex Disk console client on Linux."""
2
+
3
+ __version__ = "0.0.1"
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from .cli import main
4
+
5
+ sys.exit(main())