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
}
]
}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyrustaudit-0.0.15.tar.gz.
File metadata
- Download URL: pyrustaudit-0.0.15.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc73456938b08a92a22adfe97a287175fc6ff36bf0eb2208e3f46c716820eed5
|
|
| MD5 |
5d185edb4a5536ebc749a800c6364e54
|
|
| BLAKE2b-256 |
acc74fbd0cf5f004b64e6ad4ac3cc0d04ed324eb9c1e14e248d9d7cd80e4541d
|
Provenance
The following attestation bundles were made for pyrustaudit-0.0.15.tar.gz:
Publisher:
build_wheels.yml on MikeMoore63/pyrustaudit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyrustaudit-0.0.15.tar.gz -
Subject digest:
bc73456938b08a92a22adfe97a287175fc6ff36bf0eb2208e3f46c716820eed5 - Sigstore transparency entry: 2048610350
- Sigstore integration time:
-
Permalink:
MikeMoore63/pyrustaudit@eebcdae93f08a3306488a11df0c29bde793dd436 -
Branch / Tag:
refs/tags/v0.0.15 - Owner: https://github.com/MikeMoore63
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yml@eebcdae93f08a3306488a11df0c29bde793dd436 -
Trigger Event:
push
-
Statement type: