Skip to main content

Nvidia driver version detector for Linux

Project description

pyvidia
=======
Pyvidia is a script to detect the required driver series (and latest driver
version) for an NVIDIA graphics card in a Linux environment.

The script scrapes device and driver data from `nvidia.com`, so its device and
driver information are always up-to-date.

Inspired by the `nvidia-detect` utility in ELRepo:
http://elrepo.org/tiki/nvidia-detect

#Usage
Pyvidia can either be executed as a standalone script, or imported as a module
in other scripts.

##Script
When executing as a script, the default behavior is to return the required
driver series for the detected NVIDIA device. In the case of current drivers,
the long lived branch is preferred by default over the short lived branch.

The following command line options are also available:
```
--series Output the required driver series for the detected
NVIDIA device [Default]

--latest Output the latest version number of the driver for the
detected NVIDIA device

--longlived Denotes that the long lived version of the current
drivers should be preferred [Default]

--shortlived Denotes that the short lived version of the current
drivers should be preferred.

--deviceid DEVICEID Provide a device PCI ID to be used instead of auto-
detecting one

--url Output the download URL for the required driver

-v, --verbose More detailed output
```

##Import
When imported into another script, there are several available functions:

```
get_required_driver_series(device_id)
Returns the required driver series for the given or detected NVIDIA device.

Keyward Args:
device_id - The device PCI ID to check against the supported devices lists
```

```
get_latest_driver_version(device_id)
Returns the latest driver version of the required driver series for the
given or detected NVIDIA device.

Keyward Args:
device_id - The device PCI ID to check against the supported devices lists
```

```
get_nvidia_device()
Returns the device info (name and ID) for the detected NVIDIA device,
or none if one is not present.
```

```
get_all_supported_devices()
Returns a dictionary keyed by driver series number, containing the latest
driver version number and a list of supported devices for that series.
```

```
get_driver_url(device_id)
Returns the download URL of the required driver for the given or detected
device.

Keyward Args:
device_id - The device PCI ID to check against the supported devices lists
```

#Requirements
The required modules for this script can be installed via pip:
```
pip install -r requirements.txt
```

#Compatibility
Pyvidia should be compatible with both Python 2 (2.7) and Python 3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyvidia-1.0.1.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file pyvidia-1.0.1.tar.gz.

File metadata

  • Download URL: pyvidia-1.0.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyvidia-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b2b2f04c6f2b873e7c290a45db0b3e85e9ae3daac9b643d48966b23439c4fdea
MD5 09219a4fd89ff7cd5afd639a76a36409
BLAKE2b-256 e13b0928dca2819af97b5333460d024610691c9e437ac0af9760e35de771bb41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page