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.3.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

akimbo_ip-0.3.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (342.4 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

akimbo_ip-0.3.0-cp312-none-win_amd64.whl (186.1 kB view details)

Uploaded CPython 3.12Windows x86-64

akimbo_ip-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (342.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

akimbo_ip-0.3.0-cp312-cp312-macosx_11_0_arm64.whl (294.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

akimbo_ip-0.3.0-cp312-cp312-macosx_10_7_x86_64.whl (299.7 kB view details)

Uploaded CPython 3.12macOS 10.7+ x86-64

akimbo_ip-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (342.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

akimbo_ip-0.3.0-cp311-cp311-macosx_11_0_arm64.whl (298.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

akimbo_ip-0.3.0-cp311-cp311-macosx_10_7_x86_64.whl (303.2 kB view details)

Uploaded CPython 3.11macOS 10.7+ x86-64

akimbo_ip-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (342.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

Details for the file akimbo_ip-0.3.0.tar.gz.

File metadata

  • Download URL: akimbo_ip-0.3.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for akimbo_ip-0.3.0.tar.gz
Algorithm Hash digest
SHA256 63cacadd04217b73ced10703967b524592ba26c0bb669c6f94e2d92b77dd59db
MD5 f9fd079093f44fc3a6f54728894daa1f
BLAKE2b-256 a6f06728a1b0cfd8379adab6701e881ba57545fa5467a3c1016b552f003618ce

See more details on using hashes here.

File details

Details for the file akimbo_ip-0.3.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for akimbo_ip-0.3.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 339ba4ffb91b1df8c20efdd95d90aa10ccd235dba805b1c0f52534076ccc449c
MD5 1cced8cc0e5c78238a08afed081289c2
BLAKE2b-256 47a3c478f535025467d86508e897f7913abae8f80d72ea9b230c3bb755a31818

See more details on using hashes here.

File details

Details for the file akimbo_ip-0.3.0-cp312-none-win_amd64.whl.

File metadata

  • Download URL: akimbo_ip-0.3.0-cp312-none-win_amd64.whl
  • Upload date:
  • Size: 186.1 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for akimbo_ip-0.3.0-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 969b0c53b59d17243d177347d793c8988d5ed4e837f5bdb4e18279a79e67ea41
MD5 62b55cdf688a2996445cdda465c76209
BLAKE2b-256 999ad052b0688c99b73f2a66d0337cc20ce787d0743c4622c95e57a9f1858723

See more details on using hashes here.

File details

Details for the file akimbo_ip-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for akimbo_ip-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0015439818aec2f1324c75a2d0800735ba33867bc870a9091d397192a903462b
MD5 73592e14beaa1db2b834c4097e3e31b8
BLAKE2b-256 8e5b61d03131566e80b479c8364079225f1610237dc13cbdd3cc987460af57ba

See more details on using hashes here.

File details

Details for the file akimbo_ip-0.3.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for akimbo_ip-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 841de28ea97191f5d3eb10ad3e8d7ee46bc1c8a9b2793d1c1b46c8e6a5da4cd4
MD5 eadb3646b4dc4daafe859a716aa84ddb
BLAKE2b-256 c87cc9378b1a0a7f295355f9451dcf37f8afc7175370bb450d68b6c98c5cd7e0

See more details on using hashes here.

File details

Details for the file akimbo_ip-0.3.0-cp312-cp312-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for akimbo_ip-0.3.0-cp312-cp312-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 f44ed57c4133a7fa2b6335ff06f012f5cca3526455ac88b042afdd2b9f8104e0
MD5 6c10b39361663c2c30c693edf6ca41ef
BLAKE2b-256 3fe2e9ac9903b9ab98fb38694039f51bd14a2f1edc779af413b29efaf80fded9

See more details on using hashes here.

File details

Details for the file akimbo_ip-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for akimbo_ip-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9a9893dbcb10efdc2fa96e39a5f45aceb9e7fbca0c2a8d82c1f3de149df2beaa
MD5 64a0c3ba3f6a2f7bc41e3f9d731d7b4d
BLAKE2b-256 ed2a24713f74806cec2c7246995f8a85539abfa662dae5ab0da4a8afab0194e5

See more details on using hashes here.

File details

Details for the file akimbo_ip-0.3.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for akimbo_ip-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d81e1da44c62f7f9badcacd4f662bdf0c731e04322d8bffca0f7e3a5f081e35
MD5 c7e79dfe3fd843616a92ab1b14e831c8
BLAKE2b-256 1ca1f47abed38df7dd658922137f4f0e6e579e96f0004a8256264bade6a209fb

See more details on using hashes here.

File details

Details for the file akimbo_ip-0.3.0-cp311-cp311-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for akimbo_ip-0.3.0-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 db554603c5851997aa5ec2fc26c461da099b959cbb89f445e4e4e167156c2a75
MD5 d5f921f736934c5ac0f2ce275bcd6f85
BLAKE2b-256 eeeef8c5a488704d6668a695578290ba3e3a0c5b23407183d55bba2008890549

See more details on using hashes here.

File details

Details for the file akimbo_ip-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for akimbo_ip-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1f63328765ce7867eec0c504a0eee8c6e91533ac899a51fa99a66ec833b4936b
MD5 daf25b4345d45e8fadcbc240baec184a
BLAKE2b-256 315a8c8ae35349049cbcd8203077a15862c02e19d7fee786995700d37c98dcde

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page