Modified Ansible ipaddr() filter to work without Ansible.
Check example.py how to use it.
For details about ipaddr() filter look at https://ansible-docs.readthedocs.io/zh/stable-2.0/rst/playbooks_filters_ipaddr.html
Forked from Ansible
Source: https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/filter/ipaddr.py
Commit: https://github.com/ansible/ansible/commit/e7c39460edfb3e960e8054b1d7eda80a2d666e92