Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
debug.py41 linesDownload Raw Back to OpenSSL
1import ssl2import sys3 4import cffi5import cryptography6 7import OpenSSL.SSL8 9from . import version10 11_env_info = """\12pyOpenSSL: {pyopenssl}13cryptography: {cryptography}14cffi: {cffi}15cryptography's compiled against OpenSSL: {crypto_openssl_compile}16cryptography's linked OpenSSL: {crypto_openssl_link}17Python's OpenSSL: {python_openssl}18Python executable: {python}19Python version: {python_version}20Platform: {platform}21sys.path: {sys_path}""".format(22    pyopenssl=version.__version__,23    crypto_openssl_compile=OpenSSL._util.ffi.string(24        OpenSSL._util.lib.OPENSSL_VERSION_TEXT,25    ).decode("ascii"),26    crypto_openssl_link=OpenSSL.SSL.SSLeay_version(27        OpenSSL.SSL.SSLEAY_VERSION28    ).decode("ascii"),29    python_openssl=getattr(ssl, "OPENSSL_VERSION", "n/a"),30    cryptography=cryptography.__version__,31    cffi=cffi.__version__,32    python=sys.executable,33    python_version=sys.version,34    platform=sys.platform,35    sys_path=sys.path,36)37 38 39if __name__ == "__main__":40    print(_env_info)41 
codekingpro/portable-devtools · Team Ai