Skip to main content

Python Lib for Keenetic Routers

Project description

KeeneticPy

Boyut Görüntülenme

PyPI PyPI - Yüklenme PyPI - Wheel

Python Version Lisans Durum

PyPI Yükle

Python Lib for Keenetic Routers

RCI / PROC

ForTheBadge made-with-python ForTheBadge built-with-love

🚀 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", ip="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_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

☕️ Kahve Ismarla

🌐 Telif Hakkı ve Lisans

♻️ İletişim

Benimle iletişime geçmek isterseniz, Telegram'dan mesaj göndermekten çekinmeyin; @keyiflerolsun

@KekikAkademi için yazılmıştır..

Project details


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.4.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

KeeneticPy-1.4-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file keeneticpy-1.4.tar.gz.

File metadata

  • Download URL: keeneticpy-1.4.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for keeneticpy-1.4.tar.gz
Algorithm Hash digest
SHA256 4cdaff78c64e8b3f2b7be0f0d720ae3488ec54584c9e74373b822da9883dc99f
MD5 7eab829456b58e5c3c9f865fa3e0e367
BLAKE2b-256 1eda750f8b7a7a7ea6699195447856bd8cff607668edd9f4d67de9f9c93380b4

See more details on using hashes here.

File details

Details for the file KeeneticPy-1.4-py3-none-any.whl.

File metadata

  • Download URL: KeeneticPy-1.4-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for KeeneticPy-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e1e48483920273711e3f02c031c4de3d4c3e6ff1c14d99ad8c55f1a940f20f87
MD5 e7bb1b96beba240ee63fc6517ee6ef4e
BLAKE2b-256 f9a4fd7212e8240913d36d04871fd391aabfd7cbf9a21e2ef1a07510fae2ff1e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page