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

Function show_info

python/pyarrow/__init__.py:111–151  ·  view source on GitHub ↗

Print detailed version and platform information, for error reporting

()

Source from the content-addressed store, hash-verified

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