Skip to content

danielhallinan88/ip_handlers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

ip_handlers

Functions for dealing with IPs programmatically.

first_last_ipv4(block)

Returns the network and broadcast addresses of a subnet as a tuple.

all_addr_in_subnet(block)

Returns a list of all IPs in a subnet.

in_subnet(addr, subnet)

Returns a boolean if an IP is within a subnet.

subnet_in_supernet(subnet, supernet)

Returns a boolean if a subnet is within a supernet.

About

Various Python methods for handling IP addressing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages