https://github.com/mpicard/cidr_list
Convert CIDR to list of IPs
https://github.com/mpicard/cidr_list
cidr cli network python tool
Last synced: 14 days ago
JSON representation
Convert CIDR to list of IPs
- Host: GitHub
- URL: https://github.com/mpicard/cidr_list
- Owner: mpicard
- License: mit
- Created: 2016-11-17T13:50:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-08T11:44:46.000Z (over 9 years ago)
- Last Synced: 2025-02-27T07:12:44.581Z (over 1 year ago)
- Topics: cidr, cli, network, python, tool
- Language: Python
- Size: 2.93 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cidr-list
[](https://travis-ci.org/mpicard/cidr_list)
[](https://coveralls.io/github/mpicard/cidr_list?branch=master)
Convert CIDR to list of IPs.
# Installation
If you don't use `pipsi`, you're missing out.
Here are [installation instructions](https://github.com/mitsuhiko/pipsi#readme).
Simply run:
$ pipsi install cidr-list
Or with pip
$ pip install cidr-list
# Usage
To use it:
$ cidr-list --help
$ cidr-list 10.10.10.0/30
> 10.10.10.0,10.10.10.1,10.10.10.2,10.10.10.3
$ cidr-list 10.10.10.0/30 --range
> 10.10.10.0-10.10.10.3
$ cidr-list 10.10.10.0/30 --file output.txt
$ cidr-list 10.10.10.0/30 --seperator :
> 10.10.10.0:10.10.10.1:10.10.10.2:10.10.10.3