alberanid / python-iplib Goto Github PK
View Code? Open in Web Editor NEWPython module to convert amongst many different notations and to manage CIDR notation.
License: BSD 3-Clause "New" or "Revised" License
Python module to convert amongst many different notations and to manage CIDR notation.
License: BSD 3-Clause "New" or "Revised" License
Hello,
I tried installing this on Python 3.6.5, Ubuntu 18.04. Here's the output.
# python setup.py install
running install
running build
running build_py
creating build
creating build/lib
copying iplib.py -> build/lib
running build_scripts
creating build/scripts-3.6
copying and adjusting ./bin/cidrinfo -> build/scripts-3.6
copying and adjusting ./bin/ipconv -> build/scripts-3.6
copying and adjusting ./bin/nmconv -> build/scripts-3.6
changing mode of build/scripts-3.6/cidrinfo from 644 to 755
changing mode of build/scripts-3.6/ipconv from 644 to 755
changing mode of build/scripts-3.6/nmconv from 644 to 755
running install_lib
copying build/lib/iplib.py -> /home/user/project/.venv/lib/python3.6/site-packages
byte-compiling /home/user/project/.venv/lib/python3.6/site-packages/iplib.py to iplib.cpython-36.pyc
File "/home/user/project/.venv/lib/python3.6/site-packages/iplib.py", line 83
VALID_NETMASKS = {0: 0L, 1: 2147483648L, 2: 3221225472L, 3: 3758096384L,
^
SyntaxError: invalid syntax
running install_scripts
copying build/scripts-3.6/cidrinfo -> /home/user/project/.venv/bin
copying build/scripts-3.6/nmconv -> /home/user/project/.venv/bin
copying build/scripts-3.6/ipconv -> /home/user/project/.venv/bin
changing mode of /home/user/project/.venv/bin/cidrinfo to 755
changing mode of /home/user/project/.venv/bin/nmconv to 755
changing mode of /home/user/project/.venv/bin/ipconv to 755
running install_egg_info
Writing /home/user/project/.venv/lib/python3.6/site-packages/iplib-1.1.egg-info
If you aren't still supporting this, do you know of another Python library that supports these functions?
is_hex(ip): Return True if the IP address is in hexadecimal notation.
is_bin(ip): Return True if the IP address is in binary notation.
is_oct(ip): Return True if the IP address is in octal notation.
is_dec(ip): Return True if the IP address is in decimal notation```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.