Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def print_versions():
"""Print all the versions of software that python-blosc relies on."""
import platform
print("-=" * 38)
print("python-blosc version: %s" % blosc.__version__)
print("Blosc version: %s" % blosc.blosclib_version)
print("Compressors available: %s" % blosc.cnames)
print("Compressor library versions:")
for clib in sorted(blosc.clib_versions.keys()):
print(" %s: %s" % (clib, blosc.clib_versions[clib]))
print("Python version: %s" % sys.version)
(sysname, nodename, release, version, machine, processor) = platform.uname()
print("Platform: %s-%s-%s (%s)" % (sysname, release, machine, version))
if sysname == "Linux":
distro = os_release_pretty_name()
if distro:
print("Linux dist:", distro)
if not processor:
processor = "not recognized"
print("Processor: %s" % processor)
print("Byte-ordering: %s" % sys.byteorder)
print("Detected cores: %s" % blosc.ncores)
print("Number of threads to use by default: %s" % blosc.nthreads)
print("-=" * 38)