tgsweep 0.3.0__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.
- tgsweep-0.3.0/LICENSE +21 -0
- tgsweep-0.3.0/PKG-INFO +159 -0
- tgsweep-0.3.0/README.md +126 -0
- tgsweep-0.3.0/pyproject.toml +65 -0
- tgsweep-0.3.0/pyproject.toml.orig +61 -0
- tgsweep-0.3.0/src/tgsweep/__init__.py +3 -0
- tgsweep-0.3.0/src/tgsweep/__main__.py +3 -0
- tgsweep-0.3.0/src/tgsweep/app.py +286 -0
- tgsweep-0.3.0/src/tgsweep/cleanup.py +849 -0
- tgsweep-0.3.0/src/tgsweep/cli.py +269 -0
- tgsweep-0.3.0/src/tgsweep/errors.py +7 -0
- tgsweep-0.3.0/src/tgsweep/files.py +26 -0
- tgsweep-0.3.0/src/tgsweep/guards.py +83 -0
- tgsweep-0.3.0/src/tgsweep/home.py +138 -0
- tgsweep-0.3.0/src/tgsweep/i18n.py +422 -0
- tgsweep-0.3.0/src/tgsweep/journal.py +32 -0
- tgsweep-0.3.0/src/tgsweep/net.py +53 -0
- tgsweep-0.3.0/src/tgsweep/signin.py +208 -0
- tgsweep-0.3.0/src/tgsweep/ui.py +507 -0
tgsweep-0.3.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 umbrella-at
|
|
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.
|
tgsweep-0.3.0/PKG-INFO
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tgsweep
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: Delete your own Telegram messages from the chats you pick
|
|
5
|
+
Keywords: telegram,privacy,cleanup,delete messages,cli
|
|
6
|
+
Author: umbrella-at
|
|
7
|
+
Author-email: umbrella-at <148526531+umbrella-at@users.noreply.github.com>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
+
Classifier: Topic :: Communications :: Chat
|
|
19
|
+
Requires-Dist: platformdirs>=4.3.0,<5
|
|
20
|
+
Requires-Dist: prompt-toolkit>=3.0.53,<3.1
|
|
21
|
+
Requires-Dist: pydantic>=2.14.3,<3
|
|
22
|
+
Requires-Dist: pyyaml>=6.0.3,<7
|
|
23
|
+
Requires-Dist: questionary>=2.1.1,<2.2
|
|
24
|
+
Requires-Dist: segno>=1.6.6,<2
|
|
25
|
+
Requires-Dist: telethon>=1.45.0,<2
|
|
26
|
+
Requires-Dist: wcwidth>=0.9.4,<1
|
|
27
|
+
Requires-Python: >=3.11
|
|
28
|
+
Project-URL: Homepage, https://tgsweep.atworks.dev/en/
|
|
29
|
+
Project-URL: Source, https://github.com/umbrella-at/tgsweep
|
|
30
|
+
Project-URL: Issues, https://github.com/umbrella-at/tgsweep/issues
|
|
31
|
+
Project-URL: Changelog, https://github.com/umbrella-at/tgsweep/blob/main/CHANGELOG.md
|
|
32
|
+
Description-Content-Type: text/markdown
|
|
33
|
+
|
|
34
|
+
# tgsweep
|
|
35
|
+
|
|
36
|
+
[](https://pypi.org/project/tgsweep/)
|
|
37
|
+
[](https://pypi.org/project/tgsweep/)
|
|
38
|
+
[](https://github.com/umbrella-at/tgsweep/actions/workflows/tests.yml)
|
|
39
|
+
[](https://github.com/umbrella-at/tgsweep/blob/main/LICENSE)
|
|
40
|
+
|
|
41
|
+
English · [Русский](https://github.com/umbrella-at/tgsweep/blob/main/README.ru.md)
|
|
42
|
+
|
|
43
|
+

|
|
44
|
+
|
|
45
|
+
Recorded on a made-up account, pauses shortened.
|
|
46
|
+
|
|
47
|
+
Deletes your messages, comments on posts and reactions in the Telegram groups you select. Runs on your computer: macOS, Windows or Linux. No server or bot needed.
|
|
48
|
+
|
|
49
|
+
Step-by-step guide for Windows, macOS and Linux: https://tgsweep.atworks.dev/en/
|
|
50
|
+
|
|
51
|
+
What tgsweep never does:
|
|
52
|
+
|
|
53
|
+
- never opens private chats, bots, Saved Messages or the Telegram service chat;
|
|
54
|
+
- never touches other people's messages, even if you are a group admin;
|
|
55
|
+
- never touches groups you created or your posts in channels;
|
|
56
|
+
- deletes nothing until you select chats and confirm.
|
|
57
|
+
|
|
58
|
+
## Installation
|
|
59
|
+
|
|
60
|
+
You need uv, a manager for Python programs. It installs Python by itself.
|
|
61
|
+
|
|
62
|
+
macOS and Linux, in Terminal:
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Windows, in PowerShell:
|
|
69
|
+
|
|
70
|
+
```powershell
|
|
71
|
+
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Then make uv available in the current window (or just open a new terminal):
|
|
75
|
+
|
|
76
|
+
macOS and Linux:
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
source $HOME/.local/bin/env
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Windows, in PowerShell:
|
|
83
|
+
|
|
84
|
+
```powershell
|
|
85
|
+
$env:Path = "$HOME\.local\bin;$env:Path"
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Now install tgsweep:
|
|
89
|
+
|
|
90
|
+
```sh
|
|
91
|
+
uv tool install tgsweep
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
uv downloads the program from PyPI, the public catalog of Python programs, together with everything it needs.
|
|
95
|
+
|
|
96
|
+
## Update
|
|
97
|
+
|
|
98
|
+
One command downloads and installs the latest version:
|
|
99
|
+
|
|
100
|
+
```sh
|
|
101
|
+
uv tool upgrade tgsweep
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
If you installed tgsweep earlier from the GitHub archive link, switch to the PyPI version once:
|
|
105
|
+
|
|
106
|
+
```sh
|
|
107
|
+
uv tool install --force tgsweep
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## api_id and api_hash
|
|
111
|
+
|
|
112
|
+
Third-party Telegram programs need their own key. It is free:
|
|
113
|
+
|
|
114
|
+
1. Open https://my.telegram.org and sign in with your phone number. The code comes to Telegram.
|
|
115
|
+
2. Choose API development tools and create an application. Any title and URL will do, platform Desktop.
|
|
116
|
+
3. On the first run tgsweep asks for App api_id and App api_hash. The api_hash stays hidden as you type.
|
|
117
|
+
|
|
118
|
+
They are saved only on your computer.
|
|
119
|
+
|
|
120
|
+
## Usage
|
|
121
|
+
|
|
122
|
+
```sh
|
|
123
|
+
tgsweep
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
1. Sign in with a QR code: on your phone, Telegram > Settings > Devices > Link Desktop Device. If you have Two-Step Verification on, tgsweep asks for that password. If scanning does not work, sign in with a code: `tgsweep --code`.
|
|
127
|
+
2. Choose which messages to delete: all, including today's, or older than 1, 2, 7 or 30 days.
|
|
128
|
+
3. tgsweep finds your messages in groups and your comments on channel posts. In large chats the search takes a few minutes, and the bottom line shows which chat it is checking and how much time has passed. The next search is faster: tgsweep remembers the chats where none of your reactions were found and reads only new messages there.
|
|
129
|
+
4. Select chats with Space and press Enter. At first nothing is selected.
|
|
130
|
+
5. Type the number tgsweep shows: that many messages and reactions will be deleted. They cannot be restored.
|
|
131
|
+
6. Everything selected is deleted in one go, with pauses so that Telegram does not limit your account. The bottom line shows how much is deleted already. If Telegram asks to wait, tgsweep waits and says so. Ctrl+C stops after the current request, and the rest will be found on the next run.
|
|
132
|
+
7. At the end tgsweep offers to sign out on this computer. It is safer: the session file opens your whole account.
|
|
133
|
+
|
|
134
|
+
To sign out later: `tgsweep --logout`. You can also end the session in Telegram itself: Settings > Devices > the tgsweep session > Terminate Session.
|
|
135
|
+
|
|
136
|
+
The program uses your system language: Russian on a Russian system, English otherwise. To set it manually: `tgsweep --lang en` or `--lang ru`, the choice is remembered; back to automatic: `--lang auto`. The `TGSWEEP_LANG` variable (ru, en or auto) overrides the saved choice.
|
|
137
|
+
|
|
138
|
+
## Where the files are
|
|
139
|
+
|
|
140
|
+
| System | Folder |
|
|
141
|
+
|---|---|
|
|
142
|
+
| macOS | `~/Library/Application Support/tgsweep` |
|
|
143
|
+
| Windows | `%LOCALAPPDATA%\tgsweep` |
|
|
144
|
+
| Linux | `~/.local/share/tgsweep` |
|
|
145
|
+
|
|
146
|
+
It holds the session file (`tgsweep.session`), the api_id and api_hash (`credentials.json`), `settings.json` with the chosen language if you changed it, and the deletion log `logs/actions.jsonl`: chat and message numbers, no texts. You can set another folder with the `TGSWEEP_HOME` variable.
|
|
147
|
+
|
|
148
|
+
## Uninstall
|
|
149
|
+
|
|
150
|
+
```sh
|
|
151
|
+
tgsweep --logout
|
|
152
|
+
uv tool uninstall tgsweep
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Then delete the folder from the table above.
|
|
156
|
+
|
|
157
|
+
## License
|
|
158
|
+
|
|
159
|
+
MIT
|
tgsweep-0.3.0/README.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# tgsweep
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/tgsweep/)
|
|
4
|
+
[](https://pypi.org/project/tgsweep/)
|
|
5
|
+
[](https://github.com/umbrella-at/tgsweep/actions/workflows/tests.yml)
|
|
6
|
+
[](https://github.com/umbrella-at/tgsweep/blob/main/LICENSE)
|
|
7
|
+
|
|
8
|
+
English · [Русский](https://github.com/umbrella-at/tgsweep/blob/main/README.ru.md)
|
|
9
|
+
|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
Recorded on a made-up account, pauses shortened.
|
|
13
|
+
|
|
14
|
+
Deletes your messages, comments on posts and reactions in the Telegram groups you select. Runs on your computer: macOS, Windows or Linux. No server or bot needed.
|
|
15
|
+
|
|
16
|
+
Step-by-step guide for Windows, macOS and Linux: https://tgsweep.atworks.dev/en/
|
|
17
|
+
|
|
18
|
+
What tgsweep never does:
|
|
19
|
+
|
|
20
|
+
- never opens private chats, bots, Saved Messages or the Telegram service chat;
|
|
21
|
+
- never touches other people's messages, even if you are a group admin;
|
|
22
|
+
- never touches groups you created or your posts in channels;
|
|
23
|
+
- deletes nothing until you select chats and confirm.
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
You need uv, a manager for Python programs. It installs Python by itself.
|
|
28
|
+
|
|
29
|
+
macOS and Linux, in Terminal:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Windows, in PowerShell:
|
|
36
|
+
|
|
37
|
+
```powershell
|
|
38
|
+
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Then make uv available in the current window (or just open a new terminal):
|
|
42
|
+
|
|
43
|
+
macOS and Linux:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
source $HOME/.local/bin/env
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Windows, in PowerShell:
|
|
50
|
+
|
|
51
|
+
```powershell
|
|
52
|
+
$env:Path = "$HOME\.local\bin;$env:Path"
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Now install tgsweep:
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
uv tool install tgsweep
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
uv downloads the program from PyPI, the public catalog of Python programs, together with everything it needs.
|
|
62
|
+
|
|
63
|
+
## Update
|
|
64
|
+
|
|
65
|
+
One command downloads and installs the latest version:
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
uv tool upgrade tgsweep
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
If you installed tgsweep earlier from the GitHub archive link, switch to the PyPI version once:
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
uv tool install --force tgsweep
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## api_id and api_hash
|
|
78
|
+
|
|
79
|
+
Third-party Telegram programs need their own key. It is free:
|
|
80
|
+
|
|
81
|
+
1. Open https://my.telegram.org and sign in with your phone number. The code comes to Telegram.
|
|
82
|
+
2. Choose API development tools and create an application. Any title and URL will do, platform Desktop.
|
|
83
|
+
3. On the first run tgsweep asks for App api_id and App api_hash. The api_hash stays hidden as you type.
|
|
84
|
+
|
|
85
|
+
They are saved only on your computer.
|
|
86
|
+
|
|
87
|
+
## Usage
|
|
88
|
+
|
|
89
|
+
```sh
|
|
90
|
+
tgsweep
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
1. Sign in with a QR code: on your phone, Telegram > Settings > Devices > Link Desktop Device. If you have Two-Step Verification on, tgsweep asks for that password. If scanning does not work, sign in with a code: `tgsweep --code`.
|
|
94
|
+
2. Choose which messages to delete: all, including today's, or older than 1, 2, 7 or 30 days.
|
|
95
|
+
3. tgsweep finds your messages in groups and your comments on channel posts. In large chats the search takes a few minutes, and the bottom line shows which chat it is checking and how much time has passed. The next search is faster: tgsweep remembers the chats where none of your reactions were found and reads only new messages there.
|
|
96
|
+
4. Select chats with Space and press Enter. At first nothing is selected.
|
|
97
|
+
5. Type the number tgsweep shows: that many messages and reactions will be deleted. They cannot be restored.
|
|
98
|
+
6. Everything selected is deleted in one go, with pauses so that Telegram does not limit your account. The bottom line shows how much is deleted already. If Telegram asks to wait, tgsweep waits and says so. Ctrl+C stops after the current request, and the rest will be found on the next run.
|
|
99
|
+
7. At the end tgsweep offers to sign out on this computer. It is safer: the session file opens your whole account.
|
|
100
|
+
|
|
101
|
+
To sign out later: `tgsweep --logout`. You can also end the session in Telegram itself: Settings > Devices > the tgsweep session > Terminate Session.
|
|
102
|
+
|
|
103
|
+
The program uses your system language: Russian on a Russian system, English otherwise. To set it manually: `tgsweep --lang en` or `--lang ru`, the choice is remembered; back to automatic: `--lang auto`. The `TGSWEEP_LANG` variable (ru, en or auto) overrides the saved choice.
|
|
104
|
+
|
|
105
|
+
## Where the files are
|
|
106
|
+
|
|
107
|
+
| System | Folder |
|
|
108
|
+
|---|---|
|
|
109
|
+
| macOS | `~/Library/Application Support/tgsweep` |
|
|
110
|
+
| Windows | `%LOCALAPPDATA%\tgsweep` |
|
|
111
|
+
| Linux | `~/.local/share/tgsweep` |
|
|
112
|
+
|
|
113
|
+
It holds the session file (`tgsweep.session`), the api_id and api_hash (`credentials.json`), `settings.json` with the chosen language if you changed it, and the deletion log `logs/actions.jsonl`: chat and message numbers, no texts. You can set another folder with the `TGSWEEP_HOME` variable.
|
|
114
|
+
|
|
115
|
+
## Uninstall
|
|
116
|
+
|
|
117
|
+
```sh
|
|
118
|
+
tgsweep --logout
|
|
119
|
+
uv tool uninstall tgsweep
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Then delete the folder from the table above.
|
|
123
|
+
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
MIT
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "tgsweep"
|
|
3
|
+
version = "0.3.0"
|
|
4
|
+
description = "Delete your own Telegram messages from the chats you pick"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
keywords = [
|
|
9
|
+
"telegram",
|
|
10
|
+
"privacy",
|
|
11
|
+
"cleanup",
|
|
12
|
+
"delete messages",
|
|
13
|
+
"cli",
|
|
14
|
+
]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 4 - Beta",
|
|
17
|
+
"Environment :: Console",
|
|
18
|
+
"Intended Audience :: End Users/Desktop",
|
|
19
|
+
"Operating System :: OS Independent",
|
|
20
|
+
"Programming Language :: Python :: 3.11",
|
|
21
|
+
"Programming Language :: Python :: 3.12",
|
|
22
|
+
"Programming Language :: Python :: 3.13",
|
|
23
|
+
"Programming Language :: Python :: 3.14",
|
|
24
|
+
"Topic :: Communications :: Chat",
|
|
25
|
+
]
|
|
26
|
+
requires-python = ">=3.11"
|
|
27
|
+
dependencies = [
|
|
28
|
+
"platformdirs>=4.3.0,<5",
|
|
29
|
+
"prompt-toolkit>=3.0.53,<3.1",
|
|
30
|
+
"pydantic>=2.14.3,<3",
|
|
31
|
+
"pyyaml>=6.0.3,<7",
|
|
32
|
+
"questionary>=2.1.1,<2.2",
|
|
33
|
+
"segno>=1.6.6,<2",
|
|
34
|
+
"telethon>=1.45.0,<2",
|
|
35
|
+
"wcwidth>=0.9.4,<1",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[[project.authors]]
|
|
39
|
+
name = "umbrella-at"
|
|
40
|
+
email = "148526531+umbrella-at@users.noreply.github.com"
|
|
41
|
+
|
|
42
|
+
[project.scripts]
|
|
43
|
+
tgsweep = "tgsweep.cli:main"
|
|
44
|
+
|
|
45
|
+
[project.urls]
|
|
46
|
+
Homepage = "https://tgsweep.atworks.dev/en/"
|
|
47
|
+
Source = "https://github.com/umbrella-at/tgsweep"
|
|
48
|
+
Issues = "https://github.com/umbrella-at/tgsweep/issues"
|
|
49
|
+
Changelog = "https://github.com/umbrella-at/tgsweep/blob/main/CHANGELOG.md"
|
|
50
|
+
|
|
51
|
+
[build-system]
|
|
52
|
+
requires = ["uv_build>=0.12.5,<0.13.0"]
|
|
53
|
+
build-backend = "uv_build"
|
|
54
|
+
|
|
55
|
+
[dependency-groups]
|
|
56
|
+
dev = [
|
|
57
|
+
"anyio>=4.15.1",
|
|
58
|
+
"pyte>=0.8.2",
|
|
59
|
+
"pytest>=9.2.0",
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
[tool.pytest.ini_options]
|
|
63
|
+
testpaths = ["tests"]
|
|
64
|
+
addopts = "-ra"
|
|
65
|
+
filterwarnings = ["error::RuntimeWarning"]
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "tgsweep"
|
|
3
|
+
version = "0.3.0"
|
|
4
|
+
description = "Delete your own Telegram messages from the chats you pick"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
authors = [
|
|
9
|
+
{ name = "umbrella-at", email = "148526531+umbrella-at@users.noreply.github.com" }
|
|
10
|
+
]
|
|
11
|
+
keywords = ["telegram", "privacy", "cleanup", "delete messages", "cli"]
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Development Status :: 4 - Beta",
|
|
14
|
+
"Environment :: Console",
|
|
15
|
+
"Intended Audience :: End Users/Desktop",
|
|
16
|
+
"Operating System :: OS Independent",
|
|
17
|
+
"Programming Language :: Python :: 3.11",
|
|
18
|
+
"Programming Language :: Python :: 3.12",
|
|
19
|
+
"Programming Language :: Python :: 3.13",
|
|
20
|
+
"Programming Language :: Python :: 3.14",
|
|
21
|
+
"Topic :: Communications :: Chat",
|
|
22
|
+
]
|
|
23
|
+
requires-python = ">=3.11"
|
|
24
|
+
# uv tool install resolves these ranges, not uv.lock: the upper bounds keep new installs off a major
|
|
25
|
+
# release nobody has tested. ui.py relies on how questionary and prompt-toolkit build a question, so
|
|
26
|
+
# those two stay within a minor version. A bound is raised by hand, after the tests pass on the new release.
|
|
27
|
+
dependencies = [
|
|
28
|
+
"platformdirs>=4.3.0,<5",
|
|
29
|
+
"prompt-toolkit>=3.0.53,<3.1",
|
|
30
|
+
"pydantic>=2.14.3,<3",
|
|
31
|
+
"pyyaml>=6.0.3,<7",
|
|
32
|
+
"questionary>=2.1.1,<2.2",
|
|
33
|
+
"segno>=1.6.6,<2",
|
|
34
|
+
"telethon>=1.45.0,<2",
|
|
35
|
+
"wcwidth>=0.9.4,<1",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[project.scripts]
|
|
39
|
+
tgsweep = "tgsweep.cli:main"
|
|
40
|
+
|
|
41
|
+
[project.urls]
|
|
42
|
+
Homepage = "https://tgsweep.atworks.dev/en/"
|
|
43
|
+
Source = "https://github.com/umbrella-at/tgsweep"
|
|
44
|
+
Issues = "https://github.com/umbrella-at/tgsweep/issues"
|
|
45
|
+
Changelog = "https://github.com/umbrella-at/tgsweep/blob/main/CHANGELOG.md"
|
|
46
|
+
|
|
47
|
+
[build-system]
|
|
48
|
+
requires = ["uv_build>=0.12.5,<0.13.0"]
|
|
49
|
+
build-backend = "uv_build"
|
|
50
|
+
|
|
51
|
+
[dependency-groups]
|
|
52
|
+
dev = [
|
|
53
|
+
"anyio>=4.15.1",
|
|
54
|
+
"pyte>=0.8.2",
|
|
55
|
+
"pytest>=9.2.0",
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
[tool.pytest.ini_options]
|
|
59
|
+
testpaths = ["tests"]
|
|
60
|
+
addopts = "-ra"
|
|
61
|
+
filterwarnings = ["error::RuntimeWarning"]
|