Python Lib for Keenetic Routers
Project description
KeeneticPy
Python Lib for Keenetic Routers
RCI
/PROC
🚀 Kurulum
# Yüklemek
pip install KeeneticPy
# Güncellemek
pip install -U KeeneticPy
Kullanım
from Kekik.cli import konsol
from KeeneticPy import Keenetic
modem = Keenetic(sifre="cokomellisifre")
modem.backup(maksimum_yedek=2)
konsol.print(modem.system())
konsol.print(modem.version())
konsol.print(modem.interface()["Dsl0"])
konsol.print(modem.interface()["PPPoE0"])
konsol.print(modem.global_ip())
konsol.print("\n".join(modem.dsl_stats()["parse"]["message"]))
konsol.print(modem.hosts())
konsol.print(modem.dsl_reset())
konsol.print(modem.get_static_routes())
konsol.print(modem.add_static_route(comment="bakalim.io", host="145.53.10.71", interface="Wireguard2"))
konsol.print(modem.add_static_route(comment="bakalim.io", network="145.53.10.0", mask="255.255.255.0", interface="Wireguard2"))
konsol.print(modem.del_static_route(comment="bakalim.io", network="145.53.10.0", mask="255.255.255.0", interface="Wireguard2"))
konsol.print(modem.del_static_route(comment="bakalim.io", host="145.53.10.71", interface="Wireguard2"))
for route in modem.get_static_routes():
konsol.log(route)
if route.get("comment") == "bakalim.io":
konsol.print(modem.del_static_route(**route))
break
💸 Bağış Yap
🌐 Telif Hakkı ve Lisans
- Copyright (C) 2023 by keyiflerolsun ❤️️
- GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Koşullarına göre lisanslanmıştır..
♻️ İletişim
Benimle iletişime geçmek isterseniz, Telegram'dan mesaj göndermekten çekinmeyin; @keyiflerolsun
@KekikAkademi için yazılmıştır..
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
keeneticpy-0.9.tar.gz
(19.1 kB
view details)
Built Distribution
KeeneticPy-0.9-py3-none-any.whl
(17.4 kB
view details)
File details
Details for the file keeneticpy-0.9.tar.gz
.
File metadata
- Download URL: keeneticpy-0.9.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46df22206fa37632e728e58698640106ffb16572fd8058ff8340a23e1b06bce3 |
|
MD5 | 0fa7a91ca2d944bb6d62e0ea8debba23 |
|
BLAKE2b-256 | 49f2a54e001c5bea1ffa3b38c215fa4365a2c14d7290241bd0d6f4a489ab7343 |
File details
Details for the file KeeneticPy-0.9-py3-none-any.whl
.
File metadata
- Download URL: KeeneticPy-0.9-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69ae7c5288e1535f66d78b231bb7d67e529606273cd885fc3bebf55211cae160 |
|
MD5 | 9d1784b63ee8c6a1cd3f083bcf4664f2 |
|
BLAKE2b-256 | 40085c765d73c2b6e429c378437047fc85e38d7a1cd4e237404d60cfeae63882 |