ipman


Nameipman JSON
Version 1.1.1.1.0 PyPI version JSON
download
home_pagehttps://github.com/moriire/ipman
Summaryipman is a high-level core python package for Internet Protocol(IP) manipulations.
upload_time2023-10-28 09:22:51
maintainer
docs_urlNone
authorMobolaji Abdulsalam
requires_python>=3.10
licenseMIT
keywords ipman is a high-level core python package for internet protocol(ip) manipulations.
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/moriire/ipman",
    "name": "ipman",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "IPMan is a high-level core python package for Internet Protocol(IP) manipulations.",
    "author": "Mobolaji Abdulsalam",
    "author_email": "ibraheemabdulsalam@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/cf/d6/e7c5be2615a09a982812e1b43f3b4f0ff41bdbb14bee866c4725a51a6486/ipman-1.1.1.1.0.tar.gz",
    "platform": null,
    "description": "# IPToolz\nIPToolz is a high-level core python package for Internet Protocol(IP) manipulations and network planning tool.\n\n### Installation\n\n```sh\n pip install IPToolz\n```\n### Helper Functions\n```sh\n>> import IPToolz\n>> dir(IPToolz)\n\n['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']\n```\n\n### Usage\n\n```sh\nfrom IPToolz import X\n#e.g. \nfrom IPToolz import isIPV4\n#or \nfrom IPtoolz import *\n```\n#### getlocal\nThis return device localhost ip address.\n```sh\n>> from IPToolz import getIP\n>> getlocal()\n127.0.0.1\n```\n\n#### getIP\nThis returns the ip address of a given url.\n```sh\n>> from IPToolz import getIP\n>> getIP('www.google.com')\nx.x.x.x\n```\n\n#### IPType\nThis returns the ip address of a given url.\n```sh\n>> from IPToolz import IPType\n>> IPType('x.x.x.x')\nIPV-4\n```\n#### isIPV4\nThis returns the ip address of a given url.\n```sh\n>> from IPToolz import isIPV4\n>> isIPV4('x.x.x.x')\n('x.x.x.x', True)\n```\n#### isIPV6\nThis returns the ip address of a given url.\n```sh\n>> from IPToolz import isIPV6\n>> isIPV6('x:x:x::x')\n('x.x.x.x.x.x.x.x', True)\n```\n\n#### Others\n```sh\n>> #Conversion from decimal to binary\n>> binary(10)\n1010\n>>\n>> #Conversion from decimal to hexadecimal\n>> hexadecimal(170)\n1010A\n>>\n>> #Conversion from decimal to octet\n>> octet(10)\n12\n\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "ipman is a high-level core python package for Internet Protocol(IP) manipulations.",
    "version": "1.1.1.1.0",
    "project_urls": {
        "Download": "https://github.com/moriire/ipman/archive/v_110.tar.gz",
        "Homepage": "https://github.com/moriire/ipman"
    },
    "split_keywords": [
        "ipman",
        "is",
        "a",
        "high-level",
        "core",
        "python",
        "package",
        "for",
        "internet",
        "protocol(ip)",
        "manipulations."
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ecf78e244e7b43cfec6b40d5a7eb538137390a1c7bfeb9233026fc5b9414e214",
                "md5": "99934daf13218587e233682a59c533d8",
                "sha256": "0e9e98fddcc93c51e3fc3381918870ac97340044fa22adde90af737ddeed1b6f"
            },
            "downloads": -1,
            "filename": "ipman-1.1.1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "99934daf13218587e233682a59c533d8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 4845,
            "upload_time": "2023-10-28T09:22:50",
            "upload_time_iso_8601": "2023-10-28T09:22:50.271203Z",
            "url": "https://files.pythonhosted.org/packages/ec/f7/8e244e7b43cfec6b40d5a7eb538137390a1c7bfeb9233026fc5b9414e214/ipman-1.1.1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cfd6e7c5be2615a09a982812e1b43f3b4f0ff41bdbb14bee866c4725a51a6486",
                "md5": "9e87b0682cd945fce16c336094b69b87",
                "sha256": "a1e6760d2cda88180f4fe6ad9a9d2eeaa453e89c14952becdaf3aaf3a5937afb"
            },
            "downloads": -1,
            "filename": "ipman-1.1.1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9e87b0682cd945fce16c336094b69b87",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 4267,
            "upload_time": "2023-10-28T09:22:51",
            "upload_time_iso_8601": "2023-10-28T09:22:51.826333Z",
            "url": "https://files.pythonhosted.org/packages/cf/d6/e7c5be2615a09a982812e1b43f3b4f0ff41bdbb14bee866c4725a51a6486/ipman-1.1.1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-28 09:22:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "moriire",
    "github_project": "ipman",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "ipman"
}
        
Elapsed time: 0.13905s