MCPcopy Create free account
hub / github.com/apache/arrow / show_info

Function show_info

python/pyarrow/__init__.py:122–162  ·  view source on GitHub ↗

Print detailed version and platform information, for error reporting

()

Source from the content-addressed store, hash-verified

120
121
122def show_info():
123 """
124 Print detailed version and platform information, for error reporting
125 """
126 show_versions()
127
128 def print_entry(label, value):
129 print(f" {label: <20}: {value: <8}")
130
131 print("\nPlatform:")
132 print_entry("OS / Arch", f"{_platform.system()} {_platform.machine()}")
133 print_entry("SIMD Level", runtime_info().simd_level)
134 print_entry("Detected SIMD Level", runtime_info().detected_simd_level)
135
136 pool = default_memory_pool()
137 print("\nMemory:")
138 print_entry("Default backend", pool.backend_name)
139 print_entry("Bytes allocated", f"{pool.bytes_allocated()} bytes")
140 print_entry("Max memory", f"{pool.max_memory()} bytes")
141 print_entry("Supported Backends", ', '.join(supported_memory_backends()))
142
143 print("\nOptional modules:")
144 modules = ["csv", "cuda", "dataset", "feather", "flight", "fs", "gandiva", "json",
145 "orc", "parquet"]
146 for module in modules:
147 status = "Enabled" if _module_is_available(module) else "-"
148 print(f" {module: <20}: {status: <8}")
149 print(f" {'opentelemetry': <20}: {'Enabled' if is_opentelemetry_enabled() else '-': <8}")
150
151 print("\nFilesystems:")
152 filesystems = ["AzureFileSystem", "GcsFileSystem",
153 "HadoopFileSystem", "S3FileSystem"]
154 for fs in filesystems:
155 status = "Enabled" if _filesystem_is_available(fs) else "-"
156 print(f" {fs: <20}: {status: <8}")
157
158 print("\nCompression Codecs:")
159 codecs = ["brotli", "bz2", "gzip", "lz4_frame", "lz4", "snappy", "zstd"]
160 for codec in codecs:
161 status = "Enabled" if Codec.is_available(codec) else "-"
162 print(f" {codec: <20}: {status: <8}")
163
164
165from pyarrow.lib import (null, bool_,

Callers

nothing calls this directly

Calls 10

show_versionsFunction · 0.85
print_entryFunction · 0.85
runtime_infoFunction · 0.85
default_memory_poolFunction · 0.85
_module_is_availableFunction · 0.85
_filesystem_is_availableFunction · 0.85
bytes_allocatedMethod · 0.45
max_memoryMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected