Skip to main content

Convert IP addresses to integers

Project description

ipy2d

ipy2d on pypi

A small library to convert IP addresses to integers

Usage

from ipy2d import *

print(from_4("127.0.0.1")) # -> 2130706433
print(to_4(134744072)) # -> 8.8.8.8

print(from_6("::1")) # -> 1
print(to_6(1051570404137199630024704)) # -> 0000:0000:0000:dead:beef:0000:0000:0000
print(to_6(1051570404137199630024704, compressed=True)) # -> ::dead:beef:0:0:0

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

ipy2d-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distributions

ipy2d-0.1.0-py3.9.egg (6.3 kB view details)

Uploaded Source

ipy2d-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file ipy2d-0.1.0.tar.gz.

File metadata

  • Download URL: ipy2d-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for ipy2d-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7ae6127c12db8cf1b0f83e3551cd0a3faec90c39eb97585bcf97d632c6097ab0
MD5 a00d54ed27969f12b204f6e287afcba0
BLAKE2b-256 bc36c50a0e4e757ea173dd8c3d1cbd4c5c7be1da2b09ab10144faf9ef122a430

See more details on using hashes here.

File details

Details for the file ipy2d-0.1.0-py3.9.egg.

File metadata

  • Download URL: ipy2d-0.1.0-py3.9.egg
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for ipy2d-0.1.0-py3.9.egg
Algorithm Hash digest
SHA256 5d04e31300dc41cdc5b906b47b4925895a8f8c724f896ba422a404819494145f
MD5 555b47e02bd6782c8c33fba837ae026a
BLAKE2b-256 36a40996e4e3db763c2a82a56c8f7bbc15b8fd365f125fee7b2d36bde8b5aac8

See more details on using hashes here.

File details

Details for the file ipy2d-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ipy2d-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for ipy2d-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de99894b07ddc3f05c45c00677f62805cf742cdfa0332c20ecc246eb7a8b83d9
MD5 69f9cd49148c4c0f3a48fb58377fa322
BLAKE2b-256 af4b99aecff9d7c8ef950aaaf30c91a6630f175243da0dc2e499b4560aa8738a

See more details on using hashes here.

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