{"id":24877751,"url":"https://github.com/andrewtwin/ip-deaggregator","last_synced_at":"2025-03-27T03:45:13.182Z","repository":{"id":45597967,"uuid":"431968564","full_name":"andrewtwin/ip-deaggregator","owner":"andrewtwin","description":"Subnet a network to exclude address space. Useful for populating route tables, filters, etc.","archived":false,"fork":false,"pushed_at":"2022-03-02T10:24:14.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T09:19:11.426Z","etag":null,"topics":["ip-address-tool","ipv4-address","network","networking","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewtwin.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-11-25T20:25:27.000Z","updated_at":"2023-09-01T11:39:57.000Z","dependencies_parsed_at":"2022-08-24T07:20:12.811Z","dependency_job_id":null,"html_url":"https://github.com/andrewtwin/ip-deaggregator","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewtwin%2Fip-deaggregator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewtwin%2Fip-deaggregator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewtwin%2Fip-deaggregator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewtwin%2Fip-deaggregator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewtwin","download_url":"https://codeload.github.com/andrewtwin/ip-deaggregator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245779447,"owners_count":20670685,"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-address","network","networking","python"],"created_at":"2025-02-01T09:19:13.910Z","updated_at":"2025-03-27T03:45:13.164Z","avatar_url":"https://github.com/andrewtwin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ip-deaggregator\nSubnet a network to exclude address space.\nUseful for populating route tables, filters, etc.\n\nDoes the opposite of [ip-aggregator](https://github.com/andrewtwin/ip-aggregator)\n\n## Usage\n```\nusage: ip-deaggregator [-h] -n SUPERNET [-q] [-d OUTPUT_DELIMITER] [-m {prefix,net,wildcard}] subnet [subnet ...]\n\nSubnet a network to exclude address space.\n\npositional arguments:\n  subnet                Subnet(s) to exclude from the Supernet.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -n SUPERNET, --network SUPERNET\n                        Supernet to exclude subnet(s) from.\n  -q, --quiet           Only produce output, no other information.\n  -d OUTPUT_DELIMITER, --output-delimiter OUTPUT_DELIMITER\n                        Sets the output delimeter, default is new line.\n  -m {prefix,net,wildcard}, --mask-type {prefix,net,wildcard}\n                        Use prefix length (default), net mask, or wildcard mask.\n  -v, --verbose         Be more verbose, add timing and performance info.\n\nip-deaggregator v1.5.0\n```\n\n## Installation\nDownload the python zipapp from the [releases](https://github.com/andrewtwin/ip-deaggregator/releases) page.\n\n## Examples\nSingle subnet:\n```\npython3 main.py -n 192.168.0.0/24 192.168.0.0/27\nFinding the largest subnets of 192.168.0.0/24 which don't include the subnet(s): 192.168.0.0/27\n==================\n192.168.0.32/27\n192.168.0.64/26\n192.168.0.128/25\n==================\n3 subnets total\n```\n\nWith alternate bitmask display:\n```\npython3 main.py -n 192.168.0.0/24 192.168.0.0/27 -m wildcard\nFinding the largest subnets of 192.168.0.0/0.0.0.255 which don't include the subnet(s): 192.168.0.0/0.0.0.31\n==================\n192.168.0.32/0.0.0.31\n192.168.0.64/0.0.0.63\n192.168.0.128/0.0.0.127\n==================\n3 subnets total\n```\n\nWith a different delimiter:\n```\npython3 main.py -n 192.168.0.0/24 192.168.0.0/27 -d', '\nFinding the largest subnets of 192.168.0.0/24 which don't include the subnet(s): 192.168.0.0/27\n==================\n192.168.0.32/27, 192.168.0.64/26, 192.168.0.128/25\n==================\n3 subnets total\n```\n\nJust the output:\n```\npython3 main.py -n 192.168.0.0/24 192.168.0.0/27 -d', ' -q\n192.168.0.32/27, 192.168.0.64/26, 192.168.0.128/25\n```\n\nMultiple subnets:\n```\npython3 main.py -n 192.168.0.0/16 192.168.1.0/24 192.168.2.0/25 192.168.20.128/27\nFinding the largest subnets of 192.168.0.0/16 which don't include the subnet(s): 192.168.1.0/24, 192.168.2.0/25, 192.168.20.128/27\n==================\n192.168.0.0/24\n192.168.2.128/25\n192.168.3.0/24\n192.168.4.0/22\n192.168.8.0/21\n192.168.16.0/22\n192.168.20.0/25\n192.168.20.160/27\n192.168.20.192/26\n192.168.21.0/24\n192.168.22.0/23\n192.168.24.0/21\n192.168.32.0/19\n192.168.64.0/18\n192.168.128.0/17\n==================\n15 subnets total\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewtwin%2Fip-deaggregator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewtwin%2Fip-deaggregator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewtwin%2Fip-deaggregator/lists"}