Lib to communicate with SonicWall's API
Project description
About
This library provides functions to communicate with SonicWall’s Firewall API, without the need to build the requests by hand.
It is built on firmware 6.5.4, compatibility with 7.0.0 should be fine but its yet to be tested.
Currently only the HTTP Basic login method is supported.
If you use HTTPS, it is secure enough ;)
See it on GitHub here.
Usage
Install with:
pip install sonicos-api or poetry add sonicos-api
Import with:
from sonicos_api import sonicOS as snwl
Examples
snwl.fwLogin("https://192.168.1.1:3443", "admin", "password", False)
Logs into the firewall for executing the other functions.
snwl.getCFSLists("192.168.1.1", False)
Returns all the Content Filter lists configured in the firewall at 192.168.1.1
Supported Actions
Currently, this lib is focused on the CFS feature of the firewall, so there’s a very limited number of functions to other features.
I’m hoping to implement it along the way, feel free to help :)
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
sonicos-api-0.1.4.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for sonicos_api-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad58f53c9402b59931e1b9f3b787d39b0dbe702ca1e202fcd8b9f151946d3f4b |
|
MD5 | e2a1aaff01d5ea53510c85743de37b19 |
|
BLAKE2b-256 | b92bde1b19a4a7134f77b87ef707ade3af39eea36663c51d806106d6fac8c4cd |