Skip to main content

A Python library for parsing and interpreting AMD microcode patch files

Project description

AMD Microcode Patch

Build CodeQL PyPI version Python versions Snyk package health OpenSSF Scorecard

A Python library for parsing and interpreting AMD microcode patch files.

Installation

pip install amd-ucode-patch

Command line tools

Installing the package provides the following command line tools.

amd_ucode_patch_info

Inspect one or more AMD microcode patch files and print their header information as a table.

amd_ucode_patch_info <files...> [-f {text,md,csv}]

Arguments:

  • files: One or more patch files to inspect. Glob patterns (e.g. *.bin or **/*.bin) are expanded automatically.
  • -f, --format: Output format. One of:
    • text (default): A table rendered for the terminal.
    • md: A Markdown table.
    • csv: Comma separated values.

For every patch file the following fields are reported: file name, date, update revision, loader ID, processor revision, CPUID, family, model, stepping, autorun, encrypted and body size.

Library usage

The package can also be used programmatically:

from amd_ucode_patch.parse import ucode_patch_parse

patch = ucode_patch_parse("firmware.bin")
print(patch.header.cpuid_str)
print(patch.header.update_revision)

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

amd_ucode_patch-1.0.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amd_ucode_patch-1.0.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file amd_ucode_patch-1.0.0.tar.gz.

File metadata

  • Download URL: amd_ucode_patch-1.0.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for amd_ucode_patch-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e3b6fbc94c5d7d782c01e91119be93f1f54b411120cec1fe8d5024e2eed341b9
MD5 654fb324cd426741bfbb97fcf53add83
BLAKE2b-256 cf34a33aec141674e5a13336d75a207c9fe29d72a3da7f0a8d0fba0f6bb1c9f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for amd_ucode_patch-1.0.0.tar.gz:

Publisher: build.yml on amd-zenith/amd-ucode-patch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amd_ucode_patch-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: amd_ucode_patch-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for amd_ucode_patch-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 efa7d31961f86b702e9d1541bc855c2d76adf9e47b7bd49b3925bf1ef58c73e1
MD5 42c6fee1429c94e144a951e3e64eca9e
BLAKE2b-256 9e999fa8b5aa6be180b75ea96d8cd6582d7fd5cfcdac0224700f01f50d0468e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for amd_ucode_patch-1.0.0-py3-none-any.whl:

Publisher: build.yml on amd-zenith/amd-ucode-patch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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