Home / Function/ info() — requests Function Reference

info() — requests Function Reference

Architecture documentation for the info() function in help.py from the requests codebase.

Function python CoreAPI VerbHandlers calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  4a32e838_e6f0_c10f_86ea_de9ca62fa6fd["info()"]
  e5056bdf_dfc5_d1be_4b2a_43c5b15bf617["help.py"]
  4a32e838_e6f0_c10f_86ea_de9ca62fa6fd -->|defined in| e5056bdf_dfc5_d1be_4b2a_43c5b15bf617
  e0d76bfc_5065_516e_6964_3325188af46c["main()"]
  e0d76bfc_5065_516e_6964_3325188af46c -->|calls| 4a32e838_e6f0_c10f_86ea_de9ca62fa6fd
  b48dc370_bfcb_dfa8_a349_6f21dd5b1dc1["_implementation()"]
  4a32e838_e6f0_c10f_86ea_de9ca62fa6fd -->|calls| b48dc370_bfcb_dfa8_a349_6f21dd5b1dc1
  style 4a32e838_e6f0_c10f_86ea_de9ca62fa6fd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/requests/help.py lines 66–122

def info():
    """Generate information for a bug report."""
    try:
        platform_info = {
            "system": platform.system(),
            "release": platform.release(),
        }
    except OSError:
        platform_info = {
            "system": "Unknown",
            "release": "Unknown",
        }

    implementation_info = _implementation()
    urllib3_info = {"version": urllib3.__version__}
    charset_normalizer_info = {"version": None}
    chardet_info = {"version": None}
    if charset_normalizer:
        charset_normalizer_info = {"version": charset_normalizer.__version__}
    if chardet:
        chardet_info = {"version": chardet.__version__}

    pyopenssl_info = {
        "version": None,
        "openssl_version": "",
    }
    if OpenSSL:
        pyopenssl_info = {
            "version": OpenSSL.__version__,
            "openssl_version": f"{OpenSSL.SSL.OPENSSL_VERSION_NUMBER:x}",
        }
    cryptography_info = {
        "version": getattr(cryptography, "__version__", ""),
    }
    idna_info = {
        "version": getattr(idna, "__version__", ""),
    }

    system_ssl = ssl.OPENSSL_VERSION_NUMBER
    system_ssl_info = {"version": f"{system_ssl:x}" if system_ssl is not None else ""}

    return {
        "platform": platform_info,
        "implementation": implementation_info,
        "system_ssl": system_ssl_info,
        "using_pyopenssl": pyopenssl is not None,
        "using_charset_normalizer": chardet is None,
        "pyOpenSSL": pyopenssl_info,
        "urllib3": urllib3_info,
        "chardet": chardet_info,
        "charset_normalizer": charset_normalizer_info,
        "cryptography": cryptography_info,
        "idna": idna_info,
        "requests": {
            "version": requests_version,
        },
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does info() do?
info() is a function in the requests codebase, defined in src/requests/help.py.
Where is info() defined?
info() is defined in src/requests/help.py at line 66.
What does info() call?
info() calls 1 function(s): _implementation.
What calls info()?
info() is called by 1 function(s): main.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free