lapctl 0.1.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.
- lapctl-0.1.1/LICENSE +21 -0
- lapctl-0.1.1/PKG-INFO +149 -0
- lapctl-0.1.1/README.md +135 -0
- lapctl-0.1.1/pyproject.toml +39 -0
- lapctl-0.1.1/setup.cfg +4 -0
- lapctl-0.1.1/src/lapctl/__init__.py +3 -0
- lapctl-0.1.1/src/lapctl/channels/__init__.py +1 -0
- lapctl-0.1.1/src/lapctl/channels/telegram/__init__.py +1 -0
- lapctl-0.1.1/src/lapctl/channels/telegram/api.py +336 -0
- lapctl-0.1.1/src/lapctl/channels/telegram/auth.py +29 -0
- lapctl-0.1.1/src/lapctl/channels/telegram/handlers.py +161 -0
- lapctl-0.1.1/src/lapctl/channels/telegram/poller.py +163 -0
- lapctl-0.1.1/src/lapctl/channels/telegram/render.py +166 -0
- lapctl-0.1.1/src/lapctl/cli.py +527 -0
- lapctl-0.1.1/src/lapctl/config.py +163 -0
- lapctl-0.1.1/src/lapctl/core/__init__.py +1 -0
- lapctl-0.1.1/src/lapctl/core/battery.py +69 -0
- lapctl-0.1.1/src/lapctl/core/commands.py +1260 -0
- lapctl-0.1.1/src/lapctl/core/confirm.py +68 -0
- lapctl-0.1.1/src/lapctl/core/keyboards.py +140 -0
- lapctl-0.1.1/src/lapctl/core/paths.py +77 -0
- lapctl-0.1.1/src/lapctl/core/ratelimit.py +30 -0
- lapctl-0.1.1/src/lapctl/drivers/__init__.py +1 -0
- lapctl-0.1.1/src/lapctl/drivers/base.py +163 -0
- lapctl-0.1.1/src/lapctl/drivers/linux_hyprland.py +574 -0
- lapctl-0.1.1/src/lapctl/main.py +86 -0
- lapctl-0.1.1/src/lapctl/registry.py +110 -0
- lapctl-0.1.1/src/lapctl/results.py +86 -0
- lapctl-0.1.1/src/lapctl.egg-info/PKG-INFO +149 -0
- lapctl-0.1.1/src/lapctl.egg-info/SOURCES.txt +38 -0
- lapctl-0.1.1/src/lapctl.egg-info/dependency_links.txt +1 -0
- lapctl-0.1.1/src/lapctl.egg-info/entry_points.txt +2 -0
- lapctl-0.1.1/src/lapctl.egg-info/requires.txt +5 -0
- lapctl-0.1.1/src/lapctl.egg-info/top_level.txt +1 -0
- lapctl-0.1.1/tests/test_auth_and_config.py +112 -0
- lapctl-0.1.1/tests/test_cli.py +62 -0
- lapctl-0.1.1/tests/test_confirm.py +69 -0
- lapctl-0.1.1/tests/test_paths.py +57 -0
- lapctl-0.1.1/tests/test_registry_and_profiles.py +68 -0
- lapctl-0.1.1/tests/test_render_and_driver.py +128 -0
lapctl-0.1.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Gabyrrr
|
|
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.
|
lapctl-0.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: lapctl
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Open-source laptop remote control agent via Telegram
|
|
5
|
+
License: MIT
|
|
6
|
+
Requires-Python: >=3.11
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: requests>=2.31
|
|
10
|
+
Provides-Extra: dev
|
|
11
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
12
|
+
Requires-Dist: ruff>=0.6; extra == "dev"
|
|
13
|
+
Dynamic: license-file
|
|
14
|
+
|
|
15
|
+
# Lapctl
|
|
16
|
+
|
|
17
|
+
Agent open source yang berjalan di laptop untuk mengendalikan laptop dari jarak jauh melalui Telegram (kunci layar, screenshot, kamera, kontrol media, cek status, file, dan kontrol daya) tanpa server tambahan dan tanpa membuka port jaringan masuk.
|
|
18
|
+
|
|
19
|
+
## Privasi dan Keamanan
|
|
20
|
+
|
|
21
|
+
- Pesan, screenshot, foto, dan file **melewati server Telegram**. Bot API tidak terenkripsi end-to-end. Pertimbangkan hal ini sebelum memakai fitur sensitif.
|
|
22
|
+
- Lapctl tidak memiliki server, akun, atau telemetri.
|
|
23
|
+
- Panggilan jaringan selain ke `api.telegram.org` hanya terjadi pada fitur eksternal yang diaktifkan sendiri oleh pengguna (TTS via Google Translate, geolokasi IP via `ip-api.com`, atau notifikasi `ntfy`).
|
|
24
|
+
- Lapctl bukan produk resmi Telegram dan nama "Telegram" tidak dipakai dalam nama proyek.
|
|
25
|
+
|
|
26
|
+
## Prasyarat
|
|
27
|
+
|
|
28
|
+
- **Python 3.11** atau lebih baru
|
|
29
|
+
- **OS:** Linux (saat ini mendukung Wayland/Hyprland; driver X11 & Windows direncanakan di rilis berikutnya)
|
|
30
|
+
- **pipx** (tool untuk menginstal aplikasi CLI Python secara terisolasi tanpa mengganggu Python sistem)
|
|
31
|
+
|
|
32
|
+
### Cara Pasang `pipx`
|
|
33
|
+
|
|
34
|
+
**Linux:**
|
|
35
|
+
- **Arch Linux:**
|
|
36
|
+
```bash
|
|
37
|
+
sudo pacman -S python-pipx
|
|
38
|
+
pipx ensurepath
|
|
39
|
+
```
|
|
40
|
+
- **Ubuntu / Debian:**
|
|
41
|
+
```bash
|
|
42
|
+
sudo apt update && sudo apt install pipx
|
|
43
|
+
pipx ensurepath
|
|
44
|
+
```
|
|
45
|
+
- **Fedora:**
|
|
46
|
+
```bash
|
|
47
|
+
sudo dnf install pipx
|
|
48
|
+
pipx ensurepath
|
|
49
|
+
```
|
|
50
|
+
*(Setelah `pipx ensurepath`, tutup dan buka terminal baru, atau jalankan `source ~/.bashrc` / `source ~/.zshrc`.)*
|
|
51
|
+
|
|
52
|
+
**Windows (PowerShell):**
|
|
53
|
+
```powershell
|
|
54
|
+
python -m pip install --user pipx
|
|
55
|
+
python -m pipx ensurepath
|
|
56
|
+
```
|
|
57
|
+
*(Alternatif jika memakai Scoop: `scoop install pipx`. Setelah selesai, tutup lalu buka kembali PowerShell agar `PATH` aktif.)*
|
|
58
|
+
|
|
59
|
+
## Cara Instalasi
|
|
60
|
+
|
|
61
|
+
### Opsi 1: Langsung via `pipx` (Direkomendasikan)
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
pipx install git+https://github.com/ryaleason/lapctl.git
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Untuk memperbarui ke versi terbaru nanti:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
pipx upgrade lapctl
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Opsi 2: Dari Source (`git clone`)
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
git clone https://github.com/ryaleason/lapctl.git
|
|
77
|
+
cd lapctl
|
|
78
|
+
python3 -m venv .venv
|
|
79
|
+
source .venv/bin/activate
|
|
80
|
+
pip install .
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Setup Awal (Kurang dari 3 Menit)
|
|
84
|
+
|
|
85
|
+
1. **Buat bot Telegram:** buka [@BotFather](https://t.me/BotFather) di Telegram, kirim `/newbot`, lalu salin **Bot Token** yang diberikan.
|
|
86
|
+
2. **Jalankan wizard setup:**
|
|
87
|
+
```bash
|
|
88
|
+
lapctl setup
|
|
89
|
+
```
|
|
90
|
+
Wizard akan memandu kamu:
|
|
91
|
+
- Memasukkan **Bot Token** (input disembunyikan) dan memvalidasinya otomatis.
|
|
92
|
+
- Mendeteksi **Owner ID** secara otomatis: kamu cukup mengirim pesan apa saja ke bot barumu dari chat privat Telegram.
|
|
93
|
+
- Memilih profil izin (`aman`, `standar`, atau `lengkap`), bahasa, dan nama perangkat.
|
|
94
|
+
- Menyimpan konfigurasi ke `~/.config/lapctl/config.toml` dengan izin terbatas (`0600`).
|
|
95
|
+
- Memasang auto-start `systemd --user` (`lapctl.service`) agar bot berjalan otomatis saat login.
|
|
96
|
+
3. **Cek dependensi alat OS:**
|
|
97
|
+
```bash
|
|
98
|
+
lapctl doctor
|
|
99
|
+
```
|
|
100
|
+
Perintah ini memeriksa alat seperti `grim`, `ffmpeg`, `wf-recorder`, `hyprlock`, `wpctl`, `brightnessctl`, `playerctl`, `wl-clipboard`, `swww`, `notify-send`, `xdotool`, dan `mpv`, beserta saran instalasinya jika ada yang kurang.
|
|
101
|
+
|
|
102
|
+
## Perintah CLI
|
|
103
|
+
|
|
104
|
+
| Perintah | Fungsi |
|
|
105
|
+
|---|---|
|
|
106
|
+
| `lapctl setup` | Wizard pemasangan & konfigurasi awal |
|
|
107
|
+
| `lapctl doctor` | Cek Python, driver aktif, dan dependensi alat OS |
|
|
108
|
+
| `lapctl start` | Jalankan agent di foreground |
|
|
109
|
+
| `lapctl stop` / `restart` | Hentikan atau mulai ulang service systemd user |
|
|
110
|
+
| `lapctl status` | Cek status service dan koneksi ke Telegram |
|
|
111
|
+
| `lapctl logs` | Lihat log terbaru dari service |
|
|
112
|
+
| `lapctl config` | Lihat atau ubah pengaturan (`--profile`, `--language`, `--device-name`, `--ntfy-topic`) |
|
|
113
|
+
| `lapctl uninstall` | Hapus service dan file konfigurasi |
|
|
114
|
+
| `lapctl --version` | Tampilkan versi |
|
|
115
|
+
|
|
116
|
+
## Profil Izin
|
|
117
|
+
|
|
118
|
+
| Profil | Isi |
|
|
119
|
+
|---|---|
|
|
120
|
+
| `aman` | Info sistem, kontrol media/volume/kecerahan, notifikasi, lock, power (dengan konfirmasi Ya/Batal) |
|
|
121
|
+
| `standar` (default) | Profil aman + screenshot, webcam, rekam layar/mic, baca clipboard, `/ls`, `/find`, `/download` dalam `allowed_roots` |
|
|
122
|
+
| `lengkap` | Profil standar + `/mouse`, `/keyboard`, `/upload`, `/setclip`, `/cmd` |
|
|
123
|
+
|
|
124
|
+
## Daftar Perintah Telegram
|
|
125
|
+
|
|
126
|
+
| Kategori | Perintah | Risiko | Profil minimum |
|
|
127
|
+
|---|---|---|---|
|
|
128
|
+
| Navigasi | `/start`, `/help`, `/menu` | R | aman |
|
|
129
|
+
| Info | `/status`, `/health`, `/ps`, `/network`, `/ip`, `/logs` | R | aman |
|
|
130
|
+
| Power | `/lock` | C | aman |
|
|
131
|
+
| Power | `/suspend`, `/reboot`, `/shutdown` (wajib konfirmasi) | P | aman |
|
|
132
|
+
| Audio/Media | `/volume`, `/mute`, `/unmute`, `/volup`, `/voldown`, `/play`, `/pause`, `/next`, `/prev`, `/beep` | C | aman |
|
|
133
|
+
| Layar | `/brightness`, `/notify` | C | aman |
|
|
134
|
+
| Capture | `/ss`, `/cam`, `/vid`, `/screenrecord`, `/record` | S | standar |
|
|
135
|
+
| File | `/ls`, `/find`, `/download` (hanya `allowed_roots`) | S | standar |
|
|
136
|
+
| Clipboard | `/getclip` | S | standar |
|
|
137
|
+
| Browser & Tampilan | `/youtube`, `/wallpaper` | C | standar |
|
|
138
|
+
| Eksternal | `/say`, `/loc`, `/carihp` | S | standar |
|
|
139
|
+
| Input & File | `/mouse`, `/keyboard`, `/upload`, `/setclip` | X | lengkap |
|
|
140
|
+
| Shell | `/cmd` | X | lengkap |
|
|
141
|
+
|
|
142
|
+
## Pengembangan
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
python -m venv .venv && source .venv/bin/activate
|
|
146
|
+
pip install -e ".[dev]"
|
|
147
|
+
ruff check . && ruff format --check .
|
|
148
|
+
pytest -q
|
|
149
|
+
```
|
lapctl-0.1.1/README.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# Lapctl
|
|
2
|
+
|
|
3
|
+
Agent open source yang berjalan di laptop untuk mengendalikan laptop dari jarak jauh melalui Telegram (kunci layar, screenshot, kamera, kontrol media, cek status, file, dan kontrol daya) tanpa server tambahan dan tanpa membuka port jaringan masuk.
|
|
4
|
+
|
|
5
|
+
## Privasi dan Keamanan
|
|
6
|
+
|
|
7
|
+
- Pesan, screenshot, foto, dan file **melewati server Telegram**. Bot API tidak terenkripsi end-to-end. Pertimbangkan hal ini sebelum memakai fitur sensitif.
|
|
8
|
+
- Lapctl tidak memiliki server, akun, atau telemetri.
|
|
9
|
+
- Panggilan jaringan selain ke `api.telegram.org` hanya terjadi pada fitur eksternal yang diaktifkan sendiri oleh pengguna (TTS via Google Translate, geolokasi IP via `ip-api.com`, atau notifikasi `ntfy`).
|
|
10
|
+
- Lapctl bukan produk resmi Telegram dan nama "Telegram" tidak dipakai dalam nama proyek.
|
|
11
|
+
|
|
12
|
+
## Prasyarat
|
|
13
|
+
|
|
14
|
+
- **Python 3.11** atau lebih baru
|
|
15
|
+
- **OS:** Linux (saat ini mendukung Wayland/Hyprland; driver X11 & Windows direncanakan di rilis berikutnya)
|
|
16
|
+
- **pipx** (tool untuk menginstal aplikasi CLI Python secara terisolasi tanpa mengganggu Python sistem)
|
|
17
|
+
|
|
18
|
+
### Cara Pasang `pipx`
|
|
19
|
+
|
|
20
|
+
**Linux:**
|
|
21
|
+
- **Arch Linux:**
|
|
22
|
+
```bash
|
|
23
|
+
sudo pacman -S python-pipx
|
|
24
|
+
pipx ensurepath
|
|
25
|
+
```
|
|
26
|
+
- **Ubuntu / Debian:**
|
|
27
|
+
```bash
|
|
28
|
+
sudo apt update && sudo apt install pipx
|
|
29
|
+
pipx ensurepath
|
|
30
|
+
```
|
|
31
|
+
- **Fedora:**
|
|
32
|
+
```bash
|
|
33
|
+
sudo dnf install pipx
|
|
34
|
+
pipx ensurepath
|
|
35
|
+
```
|
|
36
|
+
*(Setelah `pipx ensurepath`, tutup dan buka terminal baru, atau jalankan `source ~/.bashrc` / `source ~/.zshrc`.)*
|
|
37
|
+
|
|
38
|
+
**Windows (PowerShell):**
|
|
39
|
+
```powershell
|
|
40
|
+
python -m pip install --user pipx
|
|
41
|
+
python -m pipx ensurepath
|
|
42
|
+
```
|
|
43
|
+
*(Alternatif jika memakai Scoop: `scoop install pipx`. Setelah selesai, tutup lalu buka kembali PowerShell agar `PATH` aktif.)*
|
|
44
|
+
|
|
45
|
+
## Cara Instalasi
|
|
46
|
+
|
|
47
|
+
### Opsi 1: Langsung via `pipx` (Direkomendasikan)
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
pipx install git+https://github.com/ryaleason/lapctl.git
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Untuk memperbarui ke versi terbaru nanti:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
pipx upgrade lapctl
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Opsi 2: Dari Source (`git clone`)
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
git clone https://github.com/ryaleason/lapctl.git
|
|
63
|
+
cd lapctl
|
|
64
|
+
python3 -m venv .venv
|
|
65
|
+
source .venv/bin/activate
|
|
66
|
+
pip install .
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Setup Awal (Kurang dari 3 Menit)
|
|
70
|
+
|
|
71
|
+
1. **Buat bot Telegram:** buka [@BotFather](https://t.me/BotFather) di Telegram, kirim `/newbot`, lalu salin **Bot Token** yang diberikan.
|
|
72
|
+
2. **Jalankan wizard setup:**
|
|
73
|
+
```bash
|
|
74
|
+
lapctl setup
|
|
75
|
+
```
|
|
76
|
+
Wizard akan memandu kamu:
|
|
77
|
+
- Memasukkan **Bot Token** (input disembunyikan) dan memvalidasinya otomatis.
|
|
78
|
+
- Mendeteksi **Owner ID** secara otomatis: kamu cukup mengirim pesan apa saja ke bot barumu dari chat privat Telegram.
|
|
79
|
+
- Memilih profil izin (`aman`, `standar`, atau `lengkap`), bahasa, dan nama perangkat.
|
|
80
|
+
- Menyimpan konfigurasi ke `~/.config/lapctl/config.toml` dengan izin terbatas (`0600`).
|
|
81
|
+
- Memasang auto-start `systemd --user` (`lapctl.service`) agar bot berjalan otomatis saat login.
|
|
82
|
+
3. **Cek dependensi alat OS:**
|
|
83
|
+
```bash
|
|
84
|
+
lapctl doctor
|
|
85
|
+
```
|
|
86
|
+
Perintah ini memeriksa alat seperti `grim`, `ffmpeg`, `wf-recorder`, `hyprlock`, `wpctl`, `brightnessctl`, `playerctl`, `wl-clipboard`, `swww`, `notify-send`, `xdotool`, dan `mpv`, beserta saran instalasinya jika ada yang kurang.
|
|
87
|
+
|
|
88
|
+
## Perintah CLI
|
|
89
|
+
|
|
90
|
+
| Perintah | Fungsi |
|
|
91
|
+
|---|---|
|
|
92
|
+
| `lapctl setup` | Wizard pemasangan & konfigurasi awal |
|
|
93
|
+
| `lapctl doctor` | Cek Python, driver aktif, dan dependensi alat OS |
|
|
94
|
+
| `lapctl start` | Jalankan agent di foreground |
|
|
95
|
+
| `lapctl stop` / `restart` | Hentikan atau mulai ulang service systemd user |
|
|
96
|
+
| `lapctl status` | Cek status service dan koneksi ke Telegram |
|
|
97
|
+
| `lapctl logs` | Lihat log terbaru dari service |
|
|
98
|
+
| `lapctl config` | Lihat atau ubah pengaturan (`--profile`, `--language`, `--device-name`, `--ntfy-topic`) |
|
|
99
|
+
| `lapctl uninstall` | Hapus service dan file konfigurasi |
|
|
100
|
+
| `lapctl --version` | Tampilkan versi |
|
|
101
|
+
|
|
102
|
+
## Profil Izin
|
|
103
|
+
|
|
104
|
+
| Profil | Isi |
|
|
105
|
+
|---|---|
|
|
106
|
+
| `aman` | Info sistem, kontrol media/volume/kecerahan, notifikasi, lock, power (dengan konfirmasi Ya/Batal) |
|
|
107
|
+
| `standar` (default) | Profil aman + screenshot, webcam, rekam layar/mic, baca clipboard, `/ls`, `/find`, `/download` dalam `allowed_roots` |
|
|
108
|
+
| `lengkap` | Profil standar + `/mouse`, `/keyboard`, `/upload`, `/setclip`, `/cmd` |
|
|
109
|
+
|
|
110
|
+
## Daftar Perintah Telegram
|
|
111
|
+
|
|
112
|
+
| Kategori | Perintah | Risiko | Profil minimum |
|
|
113
|
+
|---|---|---|---|
|
|
114
|
+
| Navigasi | `/start`, `/help`, `/menu` | R | aman |
|
|
115
|
+
| Info | `/status`, `/health`, `/ps`, `/network`, `/ip`, `/logs` | R | aman |
|
|
116
|
+
| Power | `/lock` | C | aman |
|
|
117
|
+
| Power | `/suspend`, `/reboot`, `/shutdown` (wajib konfirmasi) | P | aman |
|
|
118
|
+
| Audio/Media | `/volume`, `/mute`, `/unmute`, `/volup`, `/voldown`, `/play`, `/pause`, `/next`, `/prev`, `/beep` | C | aman |
|
|
119
|
+
| Layar | `/brightness`, `/notify` | C | aman |
|
|
120
|
+
| Capture | `/ss`, `/cam`, `/vid`, `/screenrecord`, `/record` | S | standar |
|
|
121
|
+
| File | `/ls`, `/find`, `/download` (hanya `allowed_roots`) | S | standar |
|
|
122
|
+
| Clipboard | `/getclip` | S | standar |
|
|
123
|
+
| Browser & Tampilan | `/youtube`, `/wallpaper` | C | standar |
|
|
124
|
+
| Eksternal | `/say`, `/loc`, `/carihp` | S | standar |
|
|
125
|
+
| Input & File | `/mouse`, `/keyboard`, `/upload`, `/setclip` | X | lengkap |
|
|
126
|
+
| Shell | `/cmd` | X | lengkap |
|
|
127
|
+
|
|
128
|
+
## Pengembangan
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
python -m venv .venv && source .venv/bin/activate
|
|
132
|
+
pip install -e ".[dev]"
|
|
133
|
+
ruff check . && ruff format --check .
|
|
134
|
+
pytest -q
|
|
135
|
+
```
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "lapctl"
|
|
7
|
+
version = "0.1.1"
|
|
8
|
+
description = "Open-source laptop remote control agent via Telegram"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = { text = "MIT" }
|
|
11
|
+
requires-python = ">=3.11"
|
|
12
|
+
dependencies = [
|
|
13
|
+
"requests>=2.31",
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
[project.scripts]
|
|
17
|
+
lapctl = "lapctl.cli:main"
|
|
18
|
+
|
|
19
|
+
[project.optional-dependencies]
|
|
20
|
+
dev = [
|
|
21
|
+
"pytest>=8.0",
|
|
22
|
+
"ruff>=0.6",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
[tool.setuptools.packages.find]
|
|
26
|
+
where = ["src"]
|
|
27
|
+
|
|
28
|
+
[tool.pytest.ini_options]
|
|
29
|
+
pythonpath = ["src"]
|
|
30
|
+
testpaths = ["tests"]
|
|
31
|
+
|
|
32
|
+
[tool.ruff]
|
|
33
|
+
target-version = "py311"
|
|
34
|
+
line-length = 100
|
|
35
|
+
src = ["src", "tests"]
|
|
36
|
+
|
|
37
|
+
[tool.ruff.lint]
|
|
38
|
+
select = ["E", "F", "I"]
|
|
39
|
+
ignore = ["E501"]
|
lapctl-0.1.1/setup.cfg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Channel integrations for Lapctl."""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Telegram channel adapter."""
|