Validating and classifying IPv4 address
Project description
IPregex
Validating and Classifying IPv4 Address
Prerequisites:
- Linux OS
- Python >=3.5 "pre-installed"
python3 --version
- Python pip3 "If not installed feel free to surf the web for installation guide based on your OS"
pip3 --version
Installing:
- Download and install IPregexo python package
pip3 install IPregexo
Take care PyPi packages name are case sensitive
- Import IPrexego on every python script you want to use it on
from IPregexo import IPregexo
Examples:
-
- Check vaild IP format and print message if so.
-
- Check vaild IP format and return Boolean result if so.
Commands:
| Command | Description |
|---|---|
check_IP |
Vaildate IP format and print Message |
checkB_IP |
Vaildate IP format and return Boolean |
check_IP_Private |
Vaildate if Private IP and print Message |
checkB_IP_Private |
Vaildate if Private IP and return Boolean |
check_IP_Private_A |
Vaildate if Private IP Class A and print Message |
checkB_IP_Private_A |
Vaildate if Private IP Class A and return Boolean |
check_IP_Private_B |
Vaildate if Private IP Class B and print Message |
checkB_IP_Private_B |
Vaildate if Private IP Class B and return Boolean |
check_IP_Private_C |
Vaildate if Private IP Class C and print Message |
checkB_IP_Private_C |
Vaildate if Private IP Class C and return Boolean |
Authors
- Omar Adil - Network Engineer - Linkedin
License
This project is licensed under the MIT License - see the LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
IPregexo-0.0.2.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file IPregexo-0.0.2.tar.gz.
File metadata
- Download URL: IPregexo-0.0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac216e3463fef33efc91dddc07c4dc5cd85fb981955fbe5b3e2d48349d1a7e4f
|
|
| MD5 |
946a0775b3b1c3cb60849fe0f6c2715f
|
|
| BLAKE2b-256 |
cd11fbe937f106bfeb1b8e0d7aa3a71f354e244245d66dcb58e26ce8758111eb
|
File details
Details for the file IPregexo-0.0.2-py3-none-any.whl.
File metadata
- Download URL: IPregexo-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1675e67ad67da5ca2fc7bc7ea7d42cefe8cf4ecff2f1a91ac44849c27622b38
|
|
| MD5 |
0c33ad49ff565f3906213d2ca460a8bf
|
|
| BLAKE2b-256 |
8a3cf0c9292eee479746a989e8baefd69c4ebaff9678ca86c0f5b15a9e434a4d
|