Skip to main content

IP-specific methods for akimbo

Project description

Akimbo-ip

Extension enabling fast vector processing of IPv4 and IPv6 values within nested/ragged columns of dataframes.

(experimental)

Installation

Run one of the following

> pip install git+https://github.com/intake/akimbo-ip  # dev version
> pip install akimbo-ip  # released version

Model

  • IPv4 addresses are (fixed) length 4 bytestrings, but can be represented by any 4-bye value, e.g., uint32 or fixed-4-length list of uint8
  • IPv6 addresses are (fixed) length 16 bytestrings or fixed-16-length list of uint8
  • Networks are records with an IPv4 or IPv6 field (nominally "address") and a uint8 field for the prefix length (nominally "prefix"). The field names can be overidden.

We can convert between hostmasks, netmasks and prefix lengths. Some methods require composite types like list-of-addresses, see the individual docstrings.

As with the normal functioning of akimbo, you can indicate which parts of a nested structure should be with the where= kwargs to any method.

Usage

>>> import akimbo.pandas
>>> import akimbo_ip

This will anable the .ak accessor for pandas series and dataframes (or pick a different dataframe library) and a subaccessor .ak.ip which makes available several methods that act on IP addresses and network.

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

akimbo_ip-0.1.2.tar.gz (15.5 kB view hashes)

Uploaded Source

Built Distributions

akimbo_ip-0.1.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (332.0 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

akimbo_ip-0.1.2-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl (340.0 kB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

akimbo_ip-0.1.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (332.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

akimbo_ip-0.1.2-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl (339.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

akimbo_ip-0.1.2-cp312-none-win_amd64.whl (181.1 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

akimbo_ip-0.1.2-cp312-none-win32.whl (169.9 kB view hashes)

Uploaded CPython 3.12 Windows x86

akimbo_ip-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (331.7 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

akimbo_ip-0.1.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl (339.9 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.5+ i686

akimbo_ip-0.1.2-cp312-cp312-macosx_11_0_arm64.whl (283.6 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

akimbo_ip-0.1.2-cp312-cp312-macosx_10_12_x86_64.whl (285.4 kB view hashes)

Uploaded CPython 3.12 macOS 10.12+ x86-64

akimbo_ip-0.1.2-cp311-none-win_amd64.whl (180.4 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

akimbo_ip-0.1.2-cp311-none-win32.whl (169.9 kB view hashes)

Uploaded CPython 3.11 Windows x86

akimbo_ip-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (332.3 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

akimbo_ip-0.1.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl (340.1 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.5+ i686

akimbo_ip-0.1.2-cp311-cp311-macosx_11_0_arm64.whl (284.2 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

akimbo_ip-0.1.2-cp311-cp311-macosx_10_12_x86_64.whl (286.1 kB view hashes)

Uploaded CPython 3.11 macOS 10.12+ x86-64

akimbo_ip-0.1.2-cp310-none-win_amd64.whl (180.7 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

akimbo_ip-0.1.2-cp310-none-win32.whl (169.1 kB view hashes)

Uploaded CPython 3.10 Windows x86

akimbo_ip-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (332.5 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

akimbo_ip-0.1.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl (339.6 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.5+ i686

akimbo_ip-0.1.2-cp310-cp310-macosx_11_0_arm64.whl (285.0 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

akimbo_ip-0.1.2-cp310-cp310-macosx_10_12_x86_64.whl (286.0 kB view hashes)

Uploaded CPython 3.10 macOS 10.12+ x86-64

akimbo_ip-0.1.2-cp39-none-win_amd64.whl (181.0 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

akimbo_ip-0.1.2-cp39-none-win32.whl (169.6 kB view hashes)

Uploaded CPython 3.9 Windows x86

akimbo_ip-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (333.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

akimbo_ip-0.1.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl (340.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ i686

akimbo_ip-0.1.2-cp39-cp39-macosx_11_0_arm64.whl (284.8 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

akimbo_ip-0.1.2-cp39-cp39-macosx_10_12_x86_64.whl (286.7 kB view hashes)

Uploaded CPython 3.9 macOS 10.12+ x86-64

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