Skip to main content

Script to range multiple IPs and ports

Project description

NetRange

This is a library that can load IP addresses and ports from list or file and return a list of ranges.

Installation

Run the following to install:

pip install netrange

Usage

From CLI

netrange ip --args 192.168.1.2 192.168.1.3 192.168.1.4
192.168.1.2-4

From Modual

import netrange


ips = netrange.load_ipaddrs(from_file=file)
ranged_ips netrange.dump(ips)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netrange-0.0.10.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

netrange-0.0.10-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page