Two scrips to check the free or used ips. If need a api server also is avalible to run the script on a server and get data.
If you just want to use the main script without API server you need only Python Python >= 3.9
If you want to use the api server please install the requirements.txt via pip
Windows:
pip install -r requirements.txt
Linux
pip3 install -r requirements.txt
seach_ip = "192.168.2." The IP range
seach_start = 0 First IP in the last section
seach_end = 255 Last IP in the last section
process = 10 How many process should check the IPs
online = True If online = True you get all omline IPs
save = True Save the IP to a file
print_out = False Print the IP at the end?
output = output/ Path to save the output. Be shure dont forget the / at the end!
log_file = service.log File to save the log
level = info Level to log
path = . Path to save the log
host = 127.0.0.1 The host for the API Server
port = 8000 API Server Port
Just set your settings like you need in the config.ini If you just want to chek the free IPs run
Windows:
python main.py
Linux:
python3 main.py
If you want also to use the API Server:
Windows
python api_server.py
Linux
python3 api_server.py
The docs you can find on http://host:port/docs
If you want to test some Endpoints the Swagger UI is also avalible on http://host:port/testdocs
I recomend to use Postman to test the api
- HTTPS support
- Save last Check via API request
- Extend Endpoints
- Extend Docs
- Add ping latenz
- Docs