Server IP : 172.16.15.8 / Your IP : 3.147.36.106 Web Server : Apache System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0555) : /usr/bin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
#!/usr/libexec/platform-python -s -s #----------------------------------------------------------------------------- # Copyright (c) 2008 by David P. D. Moss. All rights reserved. # # Released under the BSD license. See the LICENSE file for details. #----------------------------------------------------------------------------- """an interactive shell for the netaddr library""" import os import sys import netaddr from netaddr import * # aliases to save some typing ... from netaddr import IPAddress as IP, IPNetwork as CIDR from netaddr import EUI as MAC argv = sys.argv[1:] banner = "\nnetaddr shell %s - %s\n" % (netaddr.__version__, __doc__) exit_msg = "\nShare and enjoy!" rc_override = None try: try: # ipython >= 0.11 from IPython.terminal.embed import InteractiveShellEmbed ipshell = InteractiveShellEmbed(banner1=banner, exit_msg=exit_msg) except ImportError: # ipython < 0.11 from IPython.Shell import IPShellEmbed ipshell = IPShellEmbed(argv, banner, exit_msg, rc_override) except ImportError: sys.stderr.write('IPython (http://ipython.scipy.org/) not found!\n') sys.exit(1) ipshell()