IPv4Mutate
performs various mutations on IPv4 addresses, such as converting to binary, hex, octal, urlencoded, and more
Installation
uv add ipv4mutate
# or
pip install ipv4mutate
Usage
from ipv4mutate import IPv4Mutate
i = IPv4Mutate("127.0.5.7")
print(i.mutate_hex)
Available Attributes
mutate_binary
mutate_dotted_hex
mutate_hex
mutate_octal
mutate_octal_padded
mutate_zero_padded
mutate_zero_stripped
mutate_urlencoded
mutate_decimal
Example Output (via tests/test_ipv4mutate.py)
IP: 127.0.5.7
mutate_binary 01111111.00000000.00000101.00000111
mutate_dotted_hex 0x7f.0x0.0x5.0x7
mutate_hex 0x7f000507
mutate_octal 0177.00.05.07
mutate_octal_padded 0000000000000000000177.000000000000000000000.00000005.00000000007
mutate_zero_padded 127.000.005.007
mutate_zero_stripped 127.5.7
mutate_urlencoded %31%32%37%2e%30%2e%35%2e%37
mutate_decimal 2130707719
Metadata
Release files for ipv4mutate 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ipv4mutate-0.9.2.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ipv4mutate-0.9.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 kB
Release files / ipv4mutate-0.9.2.tar.gz
| Download URL | ipv4mutate-0.9.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3778232e77ad1c4e462269c3353bd8b458f17831e620fa1334dc0e439a6bedce
|
|
BLAKE2b-256 checksum How to use checksums |
4dcf94a8faa9b095938a7fdeaa09b615710a664f972ad0bdfb2ed67016123f5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|
Release files / ipv4mutate-0.9.2-py3-none-any.whl
| Download URL | ipv4mutate-0.9.2-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fac39319ab51b1204976eead8a7881184f100fb9033f9e120c3e45e03d66bed5
|
|
BLAKE2b-256 checksum How to use checksums |
48f1783c04522b4819fcbfc5e3c64d8b6801355fa5a1c4537a4d262de755e0c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|