Skip to main content

A python package that extracts rust audit information from rust audit based executables.

Dependency note: this package is being deprecated in favor of the unified package pygorpmrustinfo. If you depend on this package in another project, update your dependency declaration (for example in requirements, pyproject.toml, setup.cfg, or setup.py) to depend on pygorpmrustinfo instead. The unified package preserves the existing functionality while avoiding the multiple-Go-runtime risk discussed in Go issue #65050 and reducing memory usage.

Example usage

from pyrustaudit import get_rust_audit
import json


def test_get_info(file):
    res = get_rust_audit(file)
    print(json.dumps(res, indent=4))


test_get_info("foo/bar")
test_get_info("/usr/bin/du")
test_get_info("test-data/centos5-plain-Packages")

The result returned is always a dict object for errors the dictionary returned contains a key; "error" like;

{
    "error": "path error:foo/bar"
}

or

{
    "error": "/usr/bin/du: could not read Go build info from /usr/bin/du: unrecognized file format"
}

on success a python dict is rturned like this

{
    "packages": [
        {
            "name": "adler",
            "version": "1.0.2",
            "source": "registry",
            "kind": "build",
            "dependencies": null,
            "features": null,
            "root": false
        },
        {
            "name": "auditable",
            "version": "0.1.0",
            "source": "registry",
            "kind": "runtime",
            "dependencies": null,
            "features": null,
            "root": false
        },
        {
            "name": "auditable-build",
            "version": "0.1.0",
            "source": "registry",
            "kind": "build",
            "dependencies": [
                3,
                5,
                7,
                15
            ],
            "features": null,
            "root": false
        },
        {
            "name": "auditable-serde",
            "version": "0.1.0",
            "source": "registry",
            "kind": "build",
            "dependencies": [
                5,
                11,
                13,
                15
            ],
            "features": [
                "cargo_metadata",
                "default",
                "from_metadata"
            ],
            "root": false
        },
        {
            "name": "autocfg",
            "version": "1.2.0",
            "source": "registry",
            "kind": "build",
            "dependencies": null,
            "features": null,
            "root": false
        },
        {
            "name": "cargo_metadata",
            "version": "0.11.4",
            "source": "registry",
            "kind": "build",
            "dependencies": [
                11,
                13,
                15
            ],
            "features": [
                "default"
            ],
            "root": false
        },
        {
            "name": "itoa",
            "version": "1.0.11",
            "source": "registry",
            "kind": "build",
            "dependencies": null,
            "features": null,
            "root": false
        },
        {
            "name": "miniz_oxide",
            "version": "0.4.4",
            "source": "registry",
            "kind": "build",
            "dependencies": [
                0,
                4
            ],
            "features": null,
            "root": false
        },
        {
            "name": "proc-macro2",
            "version": "1.0.79",
            "source": "registry",
            "kind": "build",
            "dependencies": [
                18
            ],
            "features": [
                "proc-macro"
            ],
            "root": false
        },
        {
            "name": "quote",
            "version": "1.0.35",
            "source": "registry",
            "kind": "build",
            "dependencies": [
                8
            ],
            "features": [
                "proc-macro"
            ],
            "root": false
        },
        {
            "name": "ryu",
            "version": "1.0.17",
            "source": "registry",
            "kind": "build",
            "dependencies": null,
            "features": null,
            "root": false
        },
        {
            "name": "semver",
            "version": "0.10.0",
            "source": "registry",
            "kind": "build",
            "dependencies": [
                12,
                13
            ],
            "features": [
                "default",
                "serde"
            ],
            "root": false
        },
        {
            "name": "semver-parser",
            "version": "0.7.0",
            "source": "registry",
            "kind": "build",
            "dependencies": null,
            "features": null,
            "root": false
        },
        {
            "name": "serde",
            "version": "1.0.197",
            "source": "registry",
            "kind": "build",
            "dependencies": [
                14
            ],
            "features": [
                "default",
                "derive",
                "serde_derive",
                "std"
            ],
            "root": false
        },
        {
            "name": "serde_derive",
            "version": "1.0.197",
            "source": "registry",
            "kind": "build",
            "dependencies": [
                8,
                9,
                16
            ],
            "features": [
                "default"
            ],
            "root": false
        },
        {
            "name": "serde_json",
            "version": "1.0.115",
            "source": "registry",
            "kind": "build",
            "dependencies": [
                6,
                10,
                13
            ],
            "features": [
                "default",
                "std"
            ],
            "root": false
        },
        {
            "name": "syn",
            "version": "2.0.58",
            "source": "registry",
            "kind": "build",
            "dependencies": [
                8,
                9,
                18
            ],
            "features": [
                "clone-impls",
                "derive",
                "parsing",
                "printing",
                "proc-macro"
            ],
            "root": false
        },
        {
            "name": "test-data",
            "version": "0.1.0",
            "source": "local",
            "kind": "runtime",
            "dependencies": [
                1,
                2
            ],
            "features": null,
            "root": false
        },
        {
            "name": "unicode-ident",
            "version": "1.0.12",
            "source": "registry",
            "kind": "build",
            "dependencies": null,
            "features": null,
            "root": false
        }
    ]
}

Release files for pyrustaudit 0.0.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrustaudit 0.0.15
File Size Uploaded
pyrustaudit-0.0.15.tar.gz 2.8 kB Details

Release files / pyrustaudit-0.0.15.tar.gz

Download URL pyrustaudit-0.0.15.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bc73456938b08a92a22adfe97a287175fc6ff36bf0eb2208e3f46c716820eed5
BLAKE2b-256 checksum
How to use checksums
acc74fbd0cf5f004b64e6ad4ac3cc0d04ed324eb9c1e14e248d9d7cd80e4541d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.15 This release

1 release file

0.0.14

1 release file

0.0.6

68 release files

0.0.5

61 release files

0.0.4

43 release files

0.0.3

38 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page