{"id":20432929,"url":"https://github.com/cdzombak/cidrtool","last_synced_at":"2025-06-23T19:04:33.548Z","repository":{"id":66912862,"uuid":"127329440","full_name":"cdzombak/cidrtool","owner":"cdzombak","description":"Simple command line tool for manipulating CIDR blocks","archived":false,"fork":false,"pushed_at":"2024-07-18T15:17:28.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T21:46:31.252Z","etag":null,"topics":["cidr-notation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdzombak.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-29T18:09:26.000Z","updated_at":"2024-07-18T15:16:20.000Z","dependencies_parsed_at":"2024-07-18T03:43:59.544Z","dependency_job_id":"30663fe4-9a8a-4948-9989-8dec768dff29","html_url":"https://github.com/cdzombak/cidrtool","commit_stats":null,"previous_names":["cdzombak/cidrtool"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/cdzombak/cidrtool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdzombak%2Fcidrtool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdzombak%2Fcidrtool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdzombak%2Fcidrtool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdzombak%2Fcidrtool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdzombak","download_url":"https://codeload.github.com/cdzombak/cidrtool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdzombak%2Fcidrtool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261539319,"owners_count":23174135,"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":["cidr-notation"],"created_at":"2024-11-15T08:17:12.138Z","updated_at":"2025-06-23T19:04:33.495Z","avatar_url":"https://github.com/cdzombak.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cidrtool\n\n`cidrtool` is a simple command line tool to manipulate CIDR blocks.\n\n## Usage\n\n### Expand netblock\n\n`cidrtool --expand` reads a list of CIDR blocks from stdin and expands them to a list of IP addresses.\n\n```shell\necho \"192.168.0.0/16\" | cidrtool --expand\n```\n\n### Collapse netblocks\n\n`cidrtool --collapse4` or `--collapse6` reads a list of IP v4 or v6  addresses from stdin and collapses them to a list of CIDR blocks.\n\n```shell\necho \"192.0.2.0/25\n192.0.2.128/25\" | cidrtool --collapse4\n```\n\n## Requirements\n\n`cidrtool` requires Python 3. In particular, `/usr/bin/env python3` must be a usable Python 3 interpreter. \n\n## Installation\n\n### Debian/derivatives via apt repository\n\nInstall my Debian repository, if you haven't already:\n\n```shell\nsudo apt-get install ca-certificates curl gnupg\nsudo install -m 0755 -d /etc/apt/keyrings\ncurl -fsSL https://dist.cdzombak.net/deb.key | sudo gpg --dearmor -o /etc/apt/keyrings/dist-cdzombak-net.gpg\nsudo chmod 0644 /etc/apt/keyrings/dist-cdzombak-net.gpg\necho -e \"deb [signed-by=/etc/apt/keyrings/dist-cdzombak-net.gpg] https://dist.cdzombak.net/deb/oss any oss\\n\" | sudo tee -a /etc/apt/sources.list.d/dist-cdzombak-net.list \u003e /dev/null\nsudo apt-get update\n```\n\nThen install `cidrtool` via `apt-get`:\n\n```shell\nsudo apt-get install cidrtool\n```\n\n### macOS via Homebrew\n\n```shell\nbrew install cdzombak/oss/cidrtool\n```\n\n## License\n\n`cidrtool` is licensed under the LGPL-3.0 License. See the [LICENSE](LICENSE) file for details.\n\n## Author\n\nChris Dzombak\n- [dzombak.com](https://dzombak.com)\n- [github.com/cdzombak](https://github.com/cdzombak)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdzombak%2Fcidrtool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdzombak%2Fcidrtool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdzombak%2Fcidrtool/lists"}