Environments-utils

Latest version: v1.0.15

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.0.14

This new version of environments utils comes equipped with four brand new methods to detect GPUs:

* has_nvidia_gpu: detects whether your system has NVIDIA drivers
* has_amd_gpu: detects whether your system has ROCm drivers
* has_intel_gpu: detects whether ~~you made poor choice in life~~ your system has Intel GPU drivers
* has_gpu: any of the three above

All of these, without any additional dependencies such as TensorFlow or PyTorch.

Cheers!

1.0.5

In this new release of Environment utils, I have added support for the detection of `SLURM` nodes, with a couple of APIs to know the current node ID and the number of available nodes.

1.0.4

In this new version, I have added:

- Utilities to detect different architectures (x86, x86_64, arm64)
- Utilities to detect M1 Macs
- Documentation!

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.