<commit_before>.. ipcalc documentation master file, created by
   sphinx-quickstart on Sat Apr 11 00:06:38 2009.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Ipcalc
======

.. automodule:: ipcalc
   :members:

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
<commit_msg>Added some more text<commit_after>.. ipcalc documentation master file, created by
   sphinx-quickstart on Sat Apr 11 00:06:38 2009.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Ipcalc
======

This module allows you to perform IP subnet calculations, there is support for
both IPv4 and IPv6 CIDR notation.

Example Usage
-------------

::

    >>> import ipcalc
    >>> for x in ipcalc.Network('172.16.42.0/30'):
    ...     print str(x)
    ...
    172.16.42.0
    172.16.42.1
    172.16.42.2
    172.16.42.3
    >>> subnet = ipcalc.Network('2001:beef:babe::/48')
    >>> print str(subnet.network())
    fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b
    >>> print str(subnet.netmask())
    fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b
    >>> '192.168.42.23' in Network('192.168.42.0/24')
    True
    >>> long(IP('fe80::213:ceff:fee8:c937'))
    338288524927261089654168587652869703991L

Bugs/Features
-------------

You can issue a ticket in GitHub: https://github.com/tehmaze/ipcalc/issues

Download
--------

Get your copy of ipcalc from pypi: http://pypi.python.org/pypi/ipcalc

.. automodule:: ipcalc
   :members:

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

{'fraction_non_alphanumeric': 0.17027677496991575, 'fraction_numerical': 0.10890493381468111, 'mean_word_length': 3.2750642673521853, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 24, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 7, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '727105', 'n_tokens_mistral': 707, 'n_tokens_neox': 595, 'n_words': 154}