pyInet
Python module that works to manipulate IPv4/6 addresses, calculate Network/IP addresses. What you get:
- ip validation by class or ip version
- Generate IPv4/6, and Mac address bit by bit
- Calculate IPv4/6
- Light and fast
Installation
-
Pip
python -V-
Windows:
python -m pip install pyInet -
Unix or Mac:
pip install pyInet
-
-
GIT
-
Windows, Unix and Mac:
git clone https://github.com/LcfherShell/pyInet cd pyInet python -m pip install . or python setup.py
-
Usage Example
from pyInet import ClassA, ClassB, Topologhy
#manipulate Net
child = ClassA #Public Class
network = ClassB #Private Class
print("Call function using public class")
for i in range(3):
for ipv4 in child.IPv4(i):
print("IPv4:", ipv4)
for ipv6 in child.IPv6(i):
print("IPv6:", ipv6)
print("MacAddresss:", child.MacAddresss(),"\n")
i = 0
print("\nCall function using private class")
for i in range(3):
for ipv4 in network.IPv4(i):
print("IPv4:", ipv4)
for ipv6 in network.IPv6(i):
print("IPv6:", ipv6)
print("MacAddresss:", network.MacAddresss(),"\n")
ipv4 = "192.222.02.1"
ipv6 = "f18d:5980:50d1::cf2d"
print("Check Version and Class Ip addresses")
print("IP version:", child.Validate_IP(ipv4))
print("IPv4 Class:", child.IPv4_Class(ipv4))
print("\nIP version:", child.Validate_IP(ipv6))
print("IPv6 Class:", child.IPv6_Class(ipv6))
print("\nManipulate IPv4 :")
for x in range(1, 33):
child.IPv4_Calculator("{}/{}".format(ipv4, x))
print(child.saving.output)
print("\nManipulate IPv6 :")
for y in range(0, 33):
ipv6range = "{}/{}".format(ipv6, y)
child.IPv6_Calculator(ipv6range)
print(child.saving.output)
//Net Topologhy
host = Topologhy
//make token
host._token(ipv4, 12)
//set hostrot
host.server
host.server = "Online"//online
//router
host.router()
//make client v1(vuln token)
host.clients_v1(None, host.saving.pinbus)//vuln by access token and custum client
host.clients_v2()//random private token and auto generate
host.switch_s = "192.222.02.1 192.222.02.3"
host.Hypermedia_Host("192.222.02.2")//test connection
If you find any bugs/problems, please contact email: LCFHERSHELL@TUTANOTA.COM or alfiandecker2@gmail.com
Happy coding :). Sorry, my English is very bad
Metadata
Release files for pyInet 1.32
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyInet-1.32.tar.gz | 12.7 kB | Without provenance | Details for pyInet-1.32.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyInet-1.32-py3-none-any.whl | Python 3 | none | any | Details for pyInet-1.32-py3-none-any.whl |
Total release size: 24.9 kB
Release files / pyInet-1.32.tar.gz
| Download URL | pyInet-1.32.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3ff13cd1557e5fd84b69c9302e14c8be1b2412dc7198748a42ac91da987a059
|
|
BLAKE2b-256 checksum How to use checksums |
4bf1420b5d72b51ea35938bdb88baf3a6425591c00222b21d964ff72369a8cef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.0
|
Release files / pyInet-1.32-py3-none-any.whl
| Download URL | pyInet-1.32-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e652b19c48fd5ed0d81183b5f0593ad97e59b74a80c1b6ea8d6b42b3f72346ed
|
|
BLAKE2b-256 checksum How to use checksums |
c3f839ca414d4bc96cccf30b9abff6a4c13c3e9768e88d6d25640ee72647f51f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.0
|
Security for pyInet 1.32
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.