semvec/pypi-packages huggingface dataset:
IPToolz 1.1.0
IPToolz is a high-level core python package for Internet Protocol(IP) manipulations.
License: MIT
Requires Python: >=3.2
Keywords: IPToolz is a high-level core python package for Internet Protocol(IP) manipulations.

# IPToolz
IPToolz is a high-level core python package for Internet Protocol(IP) manipulations and network planning tool.

### Installation

```sh
 pip install IPToolz
```
### Helper Functions
```sh
>> import IPToolz
>> dir(IPToolz)

['CBit', 'HexConversionError', 'IPSegmentError', 'IPToolz', 'IPType', 'IPValueError', 'InvalidIPError', 'InvalidIPRangeError', 'Toolz', 'UnrecognisedIPError', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'binary', 'decimal', 'getIP', 'getlocal', 'hexadecimal', 'isIPV4', 'isIPV6', 'octet']
```

### Usage

```sh
from IPToolz import X
#e.g. 
from IPToolz import isIPV4
#or 
from IPtoolz import *
```
#### getlocal
This return device localhost ip address.
```sh
>> from IPToolz import getIP
>> getlocal()
127.0.0.1
```

#### getIP
This returns the ip address of a given url.
```sh
>> from IPToolz import getIP
>> getIP('www.google.com')
x.x.x.x
```

#### IPType
This returns the ip address of a given url.
```sh
>> from IPToolz import IPType
>> IPType('x.x.x.x')
IPV-4
```
#### isIPV4
This returns the ip address of a given url.
```sh
>> from IPToolz import isIPV4
>> isIPV4('x.x.x.x')
('x.x.x.x', True)
```
#### isIPV6
This returns the ip address of a given url.
```sh
>> from IPToolz import isIPV6
>> isIPV6('x:x:x::x')
('x.x.x.x.x.x.x.x', True)
```

#### Others
```sh
>> #Conversion from decimal to binary
>> binary(10)
1010
>>
>> #Conversion from decimal to hexadecimal
>> hexadecimal(170)
1010A
>>
>> #Conversion from decimal to octet
>> octet(10)
12

```
rfiletype 0.2.2
infer file and MIME type by checking the magic number signature
License: MIT

# rfiletype-py

![CI](https://github.com/messense/rfiletype-py/workflows/CI/badge.svg)
[![PyPI](https://img.shields.io/pypi/v/rfiletype.svg)](https://pypi.org/project/rfiletype)

[infer](https://github.com/bojand/infer) Python binding, infer file and MIME
type by checking the magic number signature.

## Installation

```bash
pip install rfiletype
```

## License

This work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file.