semvec/pypi-packages huggingface dataset:
ip2d-py 0.1.0
Convert IP addresses to integers on cli
License: MIT

## ip2d-py

A CLI to convert IP addresses to integers and vice versa

### Install

`pip install ip2d-py`
### Usage

`ip2dpy ::3 --hex`

`ip2dpy 8.8.8.8`

`ip2dpy -i 51092 --hex -c`

`ip2dpy ff:fe20::67 --hex -o oct`
ipy2d 0.1.0
Convert IP addresses to integers
License: MIT

## ipy2d

[![ipy2d on pypi](https://badgen.net/pypi/v/ipy2d)](https://pypi.org/project/ipy2d/)

A small library to convert IP addresses to integers

### Usage

```py
from ipy2d import *

print(from_4("127.0.0.1")) # -> 2130706433
print(to_4(134744072)) # -> 8.8.8.8

print(from_6("::1")) # -> 1
print(to_6(1051570404137199630024704)) # -> 0000:0000:0000:dead:beef:0000:0000:0000
print(to_6(1051570404137199630024704, compressed=True)) # -> ::dead:beef:0:0:0
```