croutera
所属分类:Modem编程
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2023-05-22 21:44:41
上 传 者:
sh-1993
说明: 简单Cli路由器管理。要处理常见的路由器调制解调器操作,如登录、重新启动、登录终端。,
(Simple Cli Router Admin. To handle common Routers Modems actions like login, restart, log in terminal.,)
文件列表:
.travis.yml (163, 2023-04-13)
LICENSE (1086, 2023-04-13)
MANIFEST.in (34, 2023-04-13)
Makefile (423, 2023-04-13)
bin/ (0, 2023-04-13)
bin/croutera (89, 2023-04-13)
croutera/ (0, 2023-04-13)
croutera/__init__.py (84, 2023-04-13)
croutera/cli.py (3348, 2023-04-13)
croutera/commands.py (2225, 2023-04-13)
croutera/exceptions.py (179, 2023-04-13)
croutera/extractor.py (557, 2023-04-13)
croutera/models/ (0, 2023-04-13)
croutera/models/__init__.py (91, 2023-04-13)
croutera/models/base.py (1087, 2023-04-13)
croutera/models/cisco/ (0, 2023-04-13)
croutera/models/cisco/__init__.py (104, 2023-04-13)
croutera/models/cisco/dpc3928s.py (1390, 2023-04-13)
croutera/models/dlink/ (0, 2023-04-13)
croutera/models/dlink/__init__.py (79, 2023-04-13)
croutera/models/dlink/dir610.py (1315, 2023-04-13)
croutera/models/routers.py (1194, 2023-04-13)
croutera/models/tplink/ (0, 2023-04-13)
croutera/models/tplink/__init__.py (112, 2023-04-13)
croutera/models/tplink/tlwrbased.py (1423, 2023-04-13)
croutera/models/tplink/wr340g.py (435, 2023-04-13)
croutera/models/tplink/wr720n.py (386, 2023-04-13)
croutera/runner.py (542, 2023-04-13)
croutera/version.py (82, 2023-04-13)
requirements.txt (44, 2023-04-13)
setup.py (1408, 2023-04-13)
tests/ (0, 2023-04-13)
tests/__init__.py (46, 2023-04-13)
tests/models/ (0, 2023-04-13)
tests/models/__init__.py (46, 2023-04-13)
tests/models/test_base.py (577, 2023-04-13)
tests/models/test_router.py (1348, 2023-04-13)
tests/test_cli.py (2495, 2023-04-13)
... ...
# Croutera [![PyPI version](https://badge.fury.io/py/croutera.svg)](https://badge.fury.io/py/croutera) [![Build Status](https://travis-ci.org/cristianoliveira/croutera.svg)](https://travis-ci.org/cristianoliveira/croutera)
Simple Cli Router Admin (*CR*outer*A*).
The missing CLI for common Routers actions like login, restart , list clientes, log, etc.
## Motivation
Almost all of tools I am used to use have a CLI to handle their functionality
but my WiFi router haven't. Croutera comes to supply this missing CLI for this
kind of WiFi routers/modems.
## Installing
```bash
pip install croutera
```
### From Source
Clone this repo and inside this folder do:
```bash
make setup && make install
```
## Using
```bash
croutera -h
```
## Commands
The current commands
#### Show models available
```bash
croutera -list-models
```
#### Restart
```bash
croutera -restart [model] [username] [password]
```
#### Show Wifi Password
```bash
croutera -wifi-pass [model] [username] [password]
```
You can set this params in Environment Variables:
```
ROUTER_MODEL=dlink-dir610
ROUTER_IP=10.0.0.1
ROUTER_USERNAME=admin
ROUTER_PASSWORD=admin
```
# Contributing
- Suggesting new routers to be added.
- Adding new routers. See [Routers](https://github.com/cristianoliveira/croutera/blob/master/croutera/models/base.py) to get the router interface you should implement.
- Creating issues/requests/bug fixes
- Adding Unit Tests
- Using! And sending feedback.
## Code Contribute
- Fork it!
- Create your feature branch: `git checkout -b my-new-feature`
- Commit your changes: `git commit -am 'Add some feature'`
- Push to the branch: `git push origin my-new-feature`
- Submit a pull request
**Pull Request should have unit tests**
## How to test my Implementation?
See the online simulators available. [Simulators](https://github.com/cristianoliveira/croutera/issues/11)
### Routers available:
- Cisco:
- DPC3928S / EPC3928: http://www.cisco.com/web/consumer/support/modem_dpc3928.html
- Dlink:
- DR610: http://www.dlink.com.br/produto/dir-610-a1
- TpLink:
- WR340G: http://www.tp-link.com.br/products/details/?model=TL-WR340G
- WR720N: http://www.tp-link.com.br/products/details/?model=TL-WR720N
- And all TL-WR* based router using 'tplink-tl-wrbased'
**MIT License**
近期下载者:
相关文件:
收藏者: