Tested using Python 3.10.1
This is a silly simple subnet calculator using the build in python library ipaddress and the library Typer.
-
git clone https://github.com/robustgarlic/subnetcalc-typer.git
-
pip -r install requirements.txt
-
example usage:
python subnetcalc.py 10.10.10.10/24
-defaults to /32 subnet mask if none provided
-
add argument '-- more' to display additional information about the IPv4 Address.
-example:
python subnetcalc.py 10.10.10.10/24 --more
To Do
- Ipv6.
- Incorporate the Library Rich and its features.
- Better output formatting
- Better Comments