A Python library for being a CND Batman.
You'll want to run script/bootstrap
from time to time to update the GeoLiteCity database from Maxmind, although we have packaged a version with this.
Utilitybelt provides common functions needed when writing security tools.
- Reverse DNS
- Geolocation
- IP Range Calculators (Long, Between, is_RFC1918, etc)
- Common Regular Expressions
We aim to provide more and welcome contributions.
You can get utilitybelt like a sane human being using pip:
$ pip install utilitybelt
From there add a simple: `
import utilitybelt as ub
ub.is_reserved("1.1.1.1")
And away you go!
You want to add some features? Awesome! First off, take a look at the contributing guide.
You'll want to run script/bootstrap
from time to time to update the GeoLiteCity database from Maxmind, although we have packaged a version with this. In Linux (Ubuntu), you may need to install libgeoip-dev
.
Super simple. After you've run pip install
, just use script/test
to run the test suite.
This product includes GeoLite data created by MaxMind, available from maxmind.com.