{"id":20827631,"url":"https://github.com/bonifield/ipv4helper","last_synced_at":"2026-04-22T00:33:19.176Z","repository":{"id":62571578,"uuid":"352779424","full_name":"bonifield/IPv4Helper","owner":"bonifield","description":"Handle and manipulate IPv4 CIDRs in a simple fashion, including generating CIDR ranges and viewing general subnet information.","archived":false,"fork":false,"pushed_at":"2021-03-30T13:41:56.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-20T22:09:32.283Z","etag":null,"topics":["ip-address-tool","ipv4","json","networking","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bonifield.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-29T20:43:10.000Z","updated_at":"2022-06-16T13:37:03.000Z","dependencies_parsed_at":"2022-11-03T18:26:24.125Z","dependency_job_id":null,"html_url":"https://github.com/bonifield/IPv4Helper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonifield%2FIPv4Helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonifield%2FIPv4Helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonifield%2FIPv4Helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonifield%2FIPv4Helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bonifield","download_url":"https://codeload.github.com/bonifield/IPv4Helper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243175207,"owners_count":20248428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ip-address-tool","ipv4","json","networking","python","python3"],"created_at":"2024-11-17T23:12:34.676Z","updated_at":"2025-12-27T02:27:34.371Z","avatar_url":"https://github.com/bonifield.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IPv4Helper\nHandle and manipulate IPv4 CIDRs in a simple fashion, including generating CIDR ranges and viewing general subnet information.\n\n### Installation\n```\npip install ipv4helper\n```\n\n### Usage\nProvide an IPv4 address, and optionally the CIDR it resides in (otherwise \"/32\" will be appended to the given IP).\n```\nfrom ipv4helper import IPv4Helper\ni = IPv4Helper(\"127.144.4.9/28\")\nprint(i.subnet_summary)\nfor x in i.ip_range_generator():\n\tprint(x)\n\n# snipped output\n# ...\n# 127.144.4.9/28\n# CIDR                    28\n# Mask                    255.255.255.240\n# Binary Mask             11110000\n# Range                   127.144.4.0 - 127.144.4.15\n# Blocksize               16\n# Subnet Addresses        16\n# Usable Addresses        14\n# ACL Wildcard            0.0.0.15\n# Octet Incremented       4\n# Octet Masked            1\n# ...\n# 127.144.4.0\n# 127.144.4.1\n# 127.144.4.2\n# 127.144.4.3\n# 127.144.4.4\n# ...\n```\n\n### Available Attributes\n```\nblocksize\ncidr\ngiven_ip\ngiven_cidr\ngiven_ip_first_octet\ngiven_ip_second_octet\ngiven_ip_third_octet\ngiven_ip_fourth_octet\niparg\nmask\nmask_binary\noctet # position to be incremented\nmask_octet # position to be masked\nsubnets # dictionary of general subnet information\nsubnet_summary\nsubnet_addresses\nusable_addresses\nsubnet_info # dictionary\nsubnet_json # json\nsubnet_min_ip\nsubnet_max_ip\nsubnet_max_octet\nsubnet_min_octet\nwildcard\n```\n\n### Available Generator Functions\n```\noctet_generator()\nip_range_generator()\n```\n\n### Integration with IPv4Mutate [GitHub](https://github.com/bonifield/IPv4Mutate) [PyPi](https://pypi.org/project/ipv4mutate/)\n```\nfrom ipv4helper import IPv4Helper\nfrom ipv4mutate import IPv4Mutate\ni = IPv4Helper(\"127.144.4.9/28\")\nfor x in i.ip_range_generator():\n\tz = IPv4Mutate(x)\n\tprint(z.mutate_hex)\n\n# snipped output\n# ...\n# 0x7f.0x90.0x4.0x0\n# 0x7f.0x90.0x4.0x1\n# 0x7f.0x90.0x4.0x2\n# 0x7f.0x90.0x4.0x3\n# ...\n```\n\n### Important Notes\n- \"/0\" is not supported in this version, but it will be \"soon\"\n\n### TODO\n- better internal naming convention\n- /0 support\n- integrate with IPv4Mutate and IPv6Helper\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonifield%2Fipv4helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbonifield%2Fipv4helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonifield%2Fipv4helper/lists"}