user-agents-man-pro 1.0.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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-2026 FakeObelix
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,4 @@
1
+ include README.md
2
+ include LICENSE
3
+ include pyproject.toml
4
+ recursive-include user_agents_man *.py
@@ -0,0 +1,129 @@
1
+ Metadata-Version: 2.4
2
+ Name: user-agents-man-pro
3
+ Version: 1.0.0
4
+ Summary: Interactive Telegram Bot for Server Monitoring, Process Control, and File Management.
5
+ Author-email: FakeObelix <kintilkiris@gmail.com>
6
+ License: MIT
7
+ Keywords: telegram,bot,server-manager,file-manager,psutil,monitoring
8
+ Classifier: Development Status :: 5 - Production/Stable
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Intended Audience :: System Administrators
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: System :: Monitoring
20
+ Classifier: Topic :: System :: Systems Administration
21
+ Classifier: Topic :: Communications :: Chat
22
+ Requires-Python: >=3.8
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ Requires-Dist: pyTelegramBotAPI>=4.14.0
26
+ Requires-Dist: psutil>=5.9.0
27
+ Requires-Dist: requests>=2.28.0
28
+ Dynamic: license-file
29
+
30
+ # user-agents-man-pro
31
+
32
+ **Interactive Telegram Server & File Manager Bot** untuk memantau resource server (CPU, RAM, Disk, Jaringan, Proses) dan mengelola file secara interaktif langsung dari Telegram menggunakan Inline Buttons.
33
+
34
+ ---
35
+
36
+ ## Fitur Utama (v1.0.0)
37
+
38
+ * **Interactive Dashboard UI**: Navigasi mudah dengan tombol inline (`/start`, `/menu`).
39
+ * **System & Hardware Monitor (`/server`)**: Pantau CPU, RAM, Swap, semua partisi Disk (progress bar visual), OS, dan Uptime secara real-time.
40
+ * **Interactive File Explorer (`/files`)**:
41
+ * Buka folder & navigasi ke *parent directory* (`..`) dengan klik tombol + *pagination*.
42
+ * **Download File** langsung ke chat Telegram.
43
+ * **Preview Head & Tail** untuk membaca isi file teks/kode/log langsung di Telegram.
44
+ * **Upload Otomatis**: Kirim dokumen/foto/video/audio ke bot untuk menyimpannya ke folder aktif.
45
+ * **Zip & Extract**: Kompres file/folder menjadi `.zip` atau ekstrak `.zip`/`.tar.gz` langsung di tempat.
46
+ * **Rename, Buat Folder Baru (`/mkdir`), Cari File (`/find`), & Hapus dengan Konfirmasi**.
47
+ * **Direct URL Downloader (`/dl <url>`)**: Unduh file dari link langsung ke direktori server.
48
+ * **Process Manager (`/ps`, `/kill <pid>`)**: Urutkan proses berdasarkan pemakaian RAM atau CPU dan hentikan proses yang macet.
49
+ * **Network & IP Info (`/net`, `/check <url>`)**: Cek IP Publik, ISP, lokasi server, interface jaringan lokal, trafik bandwidth, serta latensi HTTP.
50
+ * **Remote Terminal (`/exec <cmd>`)**: Jalankan perintah shell di direktori aktif (otomatis mengirim lampiran `.txt` jika output panjang; bisa dinonaktifkan dengan `enable_shell=False`).
51
+ * **Keamanan Bawaan (Access Control)**: Mendukung whitelist `admin_ids`, login via `/auth <password>`, atau mode *Auto-Claim Owner* (pengguna pertama otomatis dikunci sebagai Admin).
52
+
53
+ ---
54
+
55
+ ## Instalasi
56
+
57
+ ```bash
58
+ pip install --upgrade user-agents-man-pro
59
+ ```
60
+
61
+ ---
62
+
63
+ ## Cara Penggunaan (Python Script)
64
+
65
+ ### 1. Penggunaan Cepat (Zero-Config)
66
+
67
+ ```python
68
+ from user_agents_man.bot import UserAgentsManBot
69
+
70
+ TOKEN = "ISI_BOT_TOKEN_TELEGRAM_ANDA"
71
+ bot = UserAgentsManBot(token=TOKEN)
72
+ bot.run()
73
+ ```
74
+ *(Secara bawaan, akun Telegram pertama yang mengirim pesan ke bot akan otomatis diklaim sebagai Admin sehingga orang lain tidak dapat mengakses server Anda).*
75
+
76
+ ### 2. Penggunaan Lanjutan (Whitelist Admin ID / Password)
77
+
78
+ ```python
79
+ from user_agents_man import UserAgentsManBot
80
+
81
+ bot = UserAgentsManBot(
82
+ token="ISI_BOT_TOKEN_TELEGRAM_ANDA",
83
+ admin_ids=[123456789], # Ganti dengan Telegram User ID Anda (cek via /id)
84
+ password="PasswordRahasia", # Opsional: izinkan login tambahan via /auth <password>
85
+ root_dir="/var/www", # Opsional: direktori awal File Explorer
86
+ enable_shell=True, # Set False jika ingin mematikan fitur /exec
87
+ )
88
+ bot.run()
89
+ ```
90
+
91
+ ---
92
+
93
+ ## Cara Penggunaan langsung dari Terminal (CLI)
94
+
95
+ Setelah terinstal via `pip`, Anda juga dapat menjalankannya langsung tanpa membuat file Python:
96
+
97
+ ```bash
98
+ # Menggunakan argumen:
99
+ user-agents-man --token "BOT_TOKEN_ANDA" --admin 123456789
100
+
101
+ # Nonaktifkan eksekusi terminal (/exec) untuk mode khusus File & Monitor saja:
102
+ user-agents-man --token "BOT_TOKEN_ANDA" --no-shell
103
+ ```
104
+
105
+ ---
106
+
107
+ ## Daftar Perintah Bot Telegram
108
+
109
+ | Perintah | Fungsi |
110
+ | :--- | :--- |
111
+ | `/start` / `/menu` | Membuka Dashboard Utama interaktif |
112
+ | `/server` / `/info` | Menampilkan status CPU, RAM, Disk, OS & Uptime |
113
+ | `/files` / `/ls [path]` | Membuka File Explorer interaktif |
114
+ | `/ps` / `/top` | Menampilkan proses tertinggi berdasarkan RAM / CPU |
115
+ | `/kill <pid>` | Menghentikan proses berdasarkan PID |
116
+ | `/net` / `/ip` | Menampilkan IP Publik, ISP, Interface lokal & Bandwidth |
117
+ | `/check <url>` | Mengecek status HTTP dan latensi ke suatu domain/URL |
118
+ | `/find <kata_kunci>` | Mencari file/folder secara rekursif di direktori aktif |
119
+ | `/mkdir <nama>` | Membuat folder baru di direktori aktif |
120
+ | `/dl <url>` | Mengunduh file dari URL langsung ke server |
121
+ | `/exec <perintah>` | Menjalankan perintah terminal di direktori aktif |
122
+ | `/auth <password>` | Autentikasi menggunakan password (jika diaktifkan) |
123
+ | `/id` | Melihat User ID Telegram & status otorisasi Anda |
124
+
125
+ ---
126
+
127
+ ## Lisensi
128
+
129
+ MIT License — **FakeObelix**
@@ -0,0 +1,100 @@
1
+ # user-agents-man-pro
2
+
3
+ **Interactive Telegram Server & File Manager Bot** untuk memantau resource server (CPU, RAM, Disk, Jaringan, Proses) dan mengelola file secara interaktif langsung dari Telegram menggunakan Inline Buttons.
4
+
5
+ ---
6
+
7
+ ## Fitur Utama (v1.0.0)
8
+
9
+ * **Interactive Dashboard UI**: Navigasi mudah dengan tombol inline (`/start`, `/menu`).
10
+ * **System & Hardware Monitor (`/server`)**: Pantau CPU, RAM, Swap, semua partisi Disk (progress bar visual), OS, dan Uptime secara real-time.
11
+ * **Interactive File Explorer (`/files`)**:
12
+ * Buka folder & navigasi ke *parent directory* (`..`) dengan klik tombol + *pagination*.
13
+ * **Download File** langsung ke chat Telegram.
14
+ * **Preview Head & Tail** untuk membaca isi file teks/kode/log langsung di Telegram.
15
+ * **Upload Otomatis**: Kirim dokumen/foto/video/audio ke bot untuk menyimpannya ke folder aktif.
16
+ * **Zip & Extract**: Kompres file/folder menjadi `.zip` atau ekstrak `.zip`/`.tar.gz` langsung di tempat.
17
+ * **Rename, Buat Folder Baru (`/mkdir`), Cari File (`/find`), & Hapus dengan Konfirmasi**.
18
+ * **Direct URL Downloader (`/dl <url>`)**: Unduh file dari link langsung ke direktori server.
19
+ * **Process Manager (`/ps`, `/kill <pid>`)**: Urutkan proses berdasarkan pemakaian RAM atau CPU dan hentikan proses yang macet.
20
+ * **Network & IP Info (`/net`, `/check <url>`)**: Cek IP Publik, ISP, lokasi server, interface jaringan lokal, trafik bandwidth, serta latensi HTTP.
21
+ * **Remote Terminal (`/exec <cmd>`)**: Jalankan perintah shell di direktori aktif (otomatis mengirim lampiran `.txt` jika output panjang; bisa dinonaktifkan dengan `enable_shell=False`).
22
+ * **Keamanan Bawaan (Access Control)**: Mendukung whitelist `admin_ids`, login via `/auth <password>`, atau mode *Auto-Claim Owner* (pengguna pertama otomatis dikunci sebagai Admin).
23
+
24
+ ---
25
+
26
+ ## Instalasi
27
+
28
+ ```bash
29
+ pip install --upgrade user-agents-man-pro
30
+ ```
31
+
32
+ ---
33
+
34
+ ## Cara Penggunaan (Python Script)
35
+
36
+ ### 1. Penggunaan Cepat (Zero-Config)
37
+
38
+ ```python
39
+ from user_agents_man.bot import UserAgentsManBot
40
+
41
+ TOKEN = "ISI_BOT_TOKEN_TELEGRAM_ANDA"
42
+ bot = UserAgentsManBot(token=TOKEN)
43
+ bot.run()
44
+ ```
45
+ *(Secara bawaan, akun Telegram pertama yang mengirim pesan ke bot akan otomatis diklaim sebagai Admin sehingga orang lain tidak dapat mengakses server Anda).*
46
+
47
+ ### 2. Penggunaan Lanjutan (Whitelist Admin ID / Password)
48
+
49
+ ```python
50
+ from user_agents_man import UserAgentsManBot
51
+
52
+ bot = UserAgentsManBot(
53
+ token="ISI_BOT_TOKEN_TELEGRAM_ANDA",
54
+ admin_ids=[123456789], # Ganti dengan Telegram User ID Anda (cek via /id)
55
+ password="PasswordRahasia", # Opsional: izinkan login tambahan via /auth <password>
56
+ root_dir="/var/www", # Opsional: direktori awal File Explorer
57
+ enable_shell=True, # Set False jika ingin mematikan fitur /exec
58
+ )
59
+ bot.run()
60
+ ```
61
+
62
+ ---
63
+
64
+ ## Cara Penggunaan langsung dari Terminal (CLI)
65
+
66
+ Setelah terinstal via `pip`, Anda juga dapat menjalankannya langsung tanpa membuat file Python:
67
+
68
+ ```bash
69
+ # Menggunakan argumen:
70
+ user-agents-man --token "BOT_TOKEN_ANDA" --admin 123456789
71
+
72
+ # Nonaktifkan eksekusi terminal (/exec) untuk mode khusus File & Monitor saja:
73
+ user-agents-man --token "BOT_TOKEN_ANDA" --no-shell
74
+ ```
75
+
76
+ ---
77
+
78
+ ## Daftar Perintah Bot Telegram
79
+
80
+ | Perintah | Fungsi |
81
+ | :--- | :--- |
82
+ | `/start` / `/menu` | Membuka Dashboard Utama interaktif |
83
+ | `/server` / `/info` | Menampilkan status CPU, RAM, Disk, OS & Uptime |
84
+ | `/files` / `/ls [path]` | Membuka File Explorer interaktif |
85
+ | `/ps` / `/top` | Menampilkan proses tertinggi berdasarkan RAM / CPU |
86
+ | `/kill <pid>` | Menghentikan proses berdasarkan PID |
87
+ | `/net` / `/ip` | Menampilkan IP Publik, ISP, Interface lokal & Bandwidth |
88
+ | `/check <url>` | Mengecek status HTTP dan latensi ke suatu domain/URL |
89
+ | `/find <kata_kunci>` | Mencari file/folder secara rekursif di direktori aktif |
90
+ | `/mkdir <nama>` | Membuat folder baru di direktori aktif |
91
+ | `/dl <url>` | Mengunduh file dari URL langsung ke server |
92
+ | `/exec <perintah>` | Menjalankan perintah terminal di direktori aktif |
93
+ | `/auth <password>` | Autentikasi menggunakan password (jika diaktifkan) |
94
+ | `/id` | Melihat User ID Telegram & status otorisasi Anda |
95
+
96
+ ---
97
+
98
+ ## Lisensi
99
+
100
+ MIT License — **FakeObelix**
@@ -0,0 +1,44 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "user-agents-man-pro"
7
+ version = "1.0.0"
8
+ description = "Interactive Telegram Bot for Server Monitoring, Process Control, and File Management."
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ authors = [
12
+ {name = "FakeObelix", email = "kintilkiris@gmail.com"}
13
+ ]
14
+ requires-python = ">=3.8"
15
+ keywords = ["telegram", "bot", "server-manager", "file-manager", "psutil", "monitoring"]
16
+ classifiers = [
17
+ "Development Status :: 5 - Production/Stable",
18
+ "Intended Audience :: Developers",
19
+ "Intended Audience :: System Administrators",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Operating System :: OS Independent",
22
+ "Programming Language :: Python :: 3",
23
+ "Programming Language :: Python :: 3.8",
24
+ "Programming Language :: Python :: 3.9",
25
+ "Programming Language :: Python :: 3.10",
26
+ "Programming Language :: Python :: 3.11",
27
+ "Programming Language :: Python :: 3.12",
28
+ "Topic :: System :: Monitoring",
29
+ "Topic :: System :: Systems Administration",
30
+ "Topic :: Communications :: Chat",
31
+ ]
32
+ dependencies = [
33
+ "pyTelegramBotAPI>=4.14.0",
34
+ "psutil>=5.9.0",
35
+ "requests>=2.28.0",
36
+ ]
37
+
38
+ [project.scripts]
39
+ user-agents-man-pro = "user_agents_man.cli:main"
40
+ user-agents-man = "user_agents_man.cli:main"
41
+
42
+ [tool.setuptools.packages.find]
43
+ where = ["."]
44
+ include = ["user_agents_man*"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,5 @@
1
+ # -*- coding: utf-8 -*-
2
+ from setuptools import setup
3
+
4
+ if __name__ == "__main__":
5
+ setup()
@@ -0,0 +1,13 @@
1
+ """
2
+ user-agents-man
3
+ ~~~~~~~~~~~~~~~
4
+
5
+ Interactive Telegram Bot for Server Monitoring, Process Control, and File Management.
6
+ """
7
+
8
+ __version__ = "1.0.0"
9
+ __author__ = "FakeObelix"
10
+
11
+ from .bot import UserAgentsManBot
12
+
13
+ __all__ = ["UserAgentsManBot", "__version__"]