View get_cigna_ptc_files.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import requests | |
import asyncio | |
import re | |
import os | |
import aiohttp | |
import aiofiles | |
import time | |
View get_local_interfaces.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Python2/Python3 compatible method to get local interfaces with sockets. """ | |
import socket | |
import array | |
import struct | |
import fcntl | |
def get_local_interfaces(): | |
""" Returns a dictionary of name:ip key value pairs. """ |