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(user="admin", password="cokomellisifre", panel="http://192.168.1.1")
modem.backup(maks_backup=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_interface_names())
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.del_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"))
for route in modem.get_static_routes():
konsol.log(route)
if route.get("comment") == "bakalim.io":
konsol.print(modem.del_static_route(**route))
konsol.print(modem.add_route_with_domain(domain="x.com", interface="Wireguard2"))
konsol.print(modem.add_route_with_asn(asn=32934, interface="Wireguard2"))
💸 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-1.8.tar.gz
(20.3 kB
view details)
Built Distribution
KeeneticPy-1.8-py3-none-any.whl
(19.0 kB
view details)
File details
Details for the file keeneticpy-1.8.tar.gz
.
File metadata
- Download URL: keeneticpy-1.8.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84d3275c87da50663a96f38fb066828e97ce380fde4bf263bf3f8e4313109f15 |
|
MD5 | ce3e38ac55bf0329200858c118451267 |
|
BLAKE2b-256 | e1a9e85223acd4cb61062d72ac3c447952386bb9fb4dac47b3d4c938e1204894 |
File details
Details for the file KeeneticPy-1.8-py3-none-any.whl
.
File metadata
- Download URL: KeeneticPy-1.8-py3-none-any.whl
- Upload date:
- Size: 19.0 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 | 0af4c7cf53829884878eb549257c586c8aedad4b6939d7690d2ed9af7a195010 |
|
MD5 | 1517053030ed563ef023511c8ab9c688 |
|
BLAKE2b-256 | d15790a8d2939158594ce88d22e006ee61262c04e94a3f507e42333c5c249a85 |