platform_headers() — anthropic-sdk-python Function Reference
Architecture documentation for the platform_headers() function in _base_client.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 9adda542_4e44_5534_7bf8_9b8d22a18ab9["platform_headers()"] 31e60ad8_cac8_652d_176d_4f7cf7dda1ad["_base_client.py"] 9adda542_4e44_5534_7bf8_9b8d22a18ab9 -->|defined in| 31e60ad8_cac8_652d_176d_4f7cf7dda1ad d18455a7_e20e_afcf_998c_6a7e7521b9b9["platform_headers()"] d18455a7_e20e_afcf_998c_6a7e7521b9b9 -->|calls| 9adda542_4e44_5534_7bf8_9b8d22a18ab9 d18455a7_e20e_afcf_998c_6a7e7521b9b9["platform_headers()"] 9adda542_4e44_5534_7bf8_9b8d22a18ab9 -->|calls| d18455a7_e20e_afcf_998c_6a7e7521b9b9 6a6f42c6_64f4_e757_be29_6b5c7161ee71["get_platform()"] 9adda542_4e44_5534_7bf8_9b8d22a18ab9 -->|calls| 6a6f42c6_64f4_e757_be29_6b5c7161ee71 531ea05c_d9d4_979e_5ed0_6c7c3c11b982["get_architecture()"] 9adda542_4e44_5534_7bf8_9b8d22a18ab9 -->|calls| 531ea05c_d9d4_979e_5ed0_6c7c3c11b982 ed4a0791_d439_b2f5_4774_7f9d3476966e["get_python_runtime()"] 9adda542_4e44_5534_7bf8_9b8d22a18ab9 -->|calls| ed4a0791_d439_b2f5_4774_7f9d3476966e cb26f1d7_f456_219c_57e2_1f882bd5ba23["get_python_version()"] 9adda542_4e44_5534_7bf8_9b8d22a18ab9 -->|calls| cb26f1d7_f456_219c_57e2_1f882bd5ba23 style 9adda542_4e44_5534_7bf8_9b8d22a18ab9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/_base_client.py lines 2195–2203
def platform_headers(version: str, *, platform: Platform | None) -> Dict[str, str]:
return {
"X-Stainless-Lang": "python",
"X-Stainless-Package-Version": version,
"X-Stainless-OS": str(platform or get_platform()),
"X-Stainless-Arch": str(get_architecture()),
"X-Stainless-Runtime": get_python_runtime(),
"X-Stainless-Runtime-Version": get_python_version(),
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does platform_headers() do?
platform_headers() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/_base_client.py.
Where is platform_headers() defined?
platform_headers() is defined in src/anthropic/_base_client.py at line 2195.
What does platform_headers() call?
platform_headers() calls 5 function(s): get_architecture, get_platform, get_python_runtime, get_python_version, platform_headers.
What calls platform_headers()?
platform_headers() is called by 1 function(s): platform_headers.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free