A utility to extract rust audit information from rust executable if audit enabled
Project description
A python package that extracts rust audit information from rust audit based executables.
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
}
]
}
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
pyrustaudit-0.0.2.tar.gz
(6.2 kB
view hashes)
Built Distributions
Close
Hashes for pyrustaudit-0.0.2-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37f6ec4956d589a2247ec45dd327fbf7d7995b061bc97023c606a3dd89c13eff |
|
MD5 | e69903515206cc0fc9a8c8016aa8224f |
|
BLAKE2b-256 | 49413917d5e71c0cf54a429b447cde8b5abe35d28e87c78350b31b036a818359 |
Close
Hashes for pyrustaudit-0.0.2-pp310-pypy310_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b207d85f00f97a1f60415d43e658184c4bb9e4255e168424ab1a1586fc3ac8f5 |
|
MD5 | a9f0140519dd05ac31432f89089d7f02 |
|
BLAKE2b-256 | e41fa7f84b3764a34c5d3bca194b690f315e24730d8ec25d1125c7d01360329e |
Close
Hashes for pyrustaudit-0.0.2-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da1e1a28486c0d83437befe877d7e0bfcef342aa9df627f2733284b3adfb31bc |
|
MD5 | b89fa25dd6d305f4cde9ce5cb3d2dd29 |
|
BLAKE2b-256 | eef1442170f756c3eb0d5835c39f4efe099d9f4e1104235ce9c64ea3db9e3c64 |
Close
Hashes for pyrustaudit-0.0.2-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca76ab4321c1b161c836f0e208c7ebfd1fb8915273bbde2da49a60484abd550e |
|
MD5 | a0264c79e4f0dbf8e8921dd481c6f6d8 |
|
BLAKE2b-256 | 8e8d7a47b0895face9e63883c0be7764a3c2f8c552bf93e0057502c4049d6104 |
Close
Hashes for pyrustaudit-0.0.2-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e27e9aabccf2e341071abcebf3934126efb4e890751aeff6cc9fc015df629d7c |
|
MD5 | d9b12ee61e426eeccb2e491948fdb40d |
|
BLAKE2b-256 | afefff3e4e6735a7231e1ed383beae70f5e3ef3f962934c40cc543225b85f7c5 |
Close
Hashes for pyrustaudit-0.0.2-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7fbab601eb72e3ba684402878199a746804b97e99b1d2df84e64ee13f1b474b |
|
MD5 | 8e46d1698ac59197840bb32db767cdf9 |
|
BLAKE2b-256 | 8e2d89d2d4b12c74a2ddd4870dfa9075589e6f6560cc5b104bc6647bbfb1d1cc |
Close
Hashes for pyrustaudit-0.0.2-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3921767be4dc941510491f16f9e69081d044683dfbda2f9163311c898f4ab340 |
|
MD5 | 80934c7754a46d2096e6166dc53e115c |
|
BLAKE2b-256 | ee77e0e4ca9b0d62d783f60d3a2b4b03328bbf0e47d89f13fc9be716ecd1100f |
Close
Hashes for pyrustaudit-0.0.2-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66ea52543313e6356aeaa03e93710f6944f2b108cf992344da3e2adbfae5479b |
|
MD5 | a80d335e24a76d58ba1fa18b21ac03ae |
|
BLAKE2b-256 | 60588a79470fe4f79464c5268f9b4d633b09864decfd0dbf6b9bb63d77571afa |
Close
Hashes for pyrustaudit-0.0.2-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 938c62a84a1d3bf4b2ae404dcbe75e51026d91e636993e53930f0c367d238e3f |
|
MD5 | 8dd0794b214e34a55e1ca639f3ed360b |
|
BLAKE2b-256 | 4d1560e66d8d3b8467a0950150f97a53210eaa0be3ada462d5223cd8d8f9f51d |
Close
Hashes for pyrustaudit-0.0.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d79a2ca5bae50e08123e8463ee50c7cf4d8e6b99c93cfbe0e3a58f70df38a76 |
|
MD5 | 2b1b987f837bb42c183c306222f3e258 |
|
BLAKE2b-256 | d07b6a6864115cade1e8e1fc483af09da902dbbe7c68365f7e70b034f4404ef7 |
Close
Hashes for pyrustaudit-0.0.2-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 763cdfac4c9d11fa9c9c98bf4daede73f509bdf93739862fd854678b3cf09e87 |
|
MD5 | e0ef001090fffca4beea5666fa295cfd |
|
BLAKE2b-256 | 128311e75b997c0e7995f2bd18df3a9f0d7778233991f9891adc99c7e7243cc5 |
Close
Hashes for pyrustaudit-0.0.2-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ae8d0fc188d63c12cfce8fec39bf973d61596f3fd0336b1e192d2745f9685d2 |
|
MD5 | bf2df34a1c310cb829d926afdedfdb98 |
|
BLAKE2b-256 | 8c843eceef529bde1980974f9b9070d8beaf05e9e829f0b86b4eb93ffcda5ac4 |
Close
Hashes for pyrustaudit-0.0.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e12f34308b8d82f648bf12e36cda2143f9804c92e7e58674b17216ca035d444 |
|
MD5 | 7aefbe8a8592c75a53d80bdcfd959757 |
|
BLAKE2b-256 | 5de88ce0f2eda5fff6a5086b2104d9f28a972538aeb015afc03ca7313f6bdf36 |
Close
Hashes for pyrustaudit-0.0.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7997daf84948e91bda1d215e2f5904967a326a31c6f1709c999468cf2909887 |
|
MD5 | 482fee7af178cbd0935403d656d75e69 |
|
BLAKE2b-256 | 9bfe51a11848b8fe4c60db0e4d1ed41cdc0cabb16d6bff7076c6dce793496697 |
Close
Hashes for pyrustaudit-0.0.2-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65ab7a670a6b94156b3aa08ca35a76da87b8397e58f7b72a793a79581cca657a |
|
MD5 | 4817876044dc17e298998b5fabfb5702 |
|
BLAKE2b-256 | 09ab151d081efc458d1f046cd37724e1805ccce413ab9a332827d20c49ae6cb6 |
Close
Hashes for pyrustaudit-0.0.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6e623af32f4c01c73ab9a8d8884091c66dbd289597ae05d2231143693246413 |
|
MD5 | 69c28d019bc2cebb6fed83a1db5632e6 |
|
BLAKE2b-256 | 603d84558da586dd515fdad71978e2b5626bd046847244edbcd50df0fa5d4ac6 |
Close
Hashes for pyrustaudit-0.0.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4bd58c9938ad63d0d2e348918918d10c66567074f89507707f23e803a681301 |
|
MD5 | 44ef34a7d810beb7035eb2a24b0ea4e5 |
|
BLAKE2b-256 | 2ba752cc4eb37e648f23f7a239aace587b80aace3b9dc812ea3883c140c1979a |
Close
Hashes for pyrustaudit-0.0.2-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbe293f72bac2b037424b3d669c944ea6615886b686d16d609b83bcc70f2987d |
|
MD5 | a43798ba0e1a7b748e740a840dfd7698 |
|
BLAKE2b-256 | 21442f259032fddd76a8f8f30608442b048eabcd310cf1a9a493a5c0a1ffb662 |
Close
Hashes for pyrustaudit-0.0.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04e5828953cf2068e67773f71755383167db01440cc020d4862d9618b8734384 |
|
MD5 | 3c982700aea7b48f2f7eb83f5bc1e85f |
|
BLAKE2b-256 | 4afef89491623d2433a86eaa40b7b5b602c96a5c3e1d5430e628fcf1364de627 |
Close
Hashes for pyrustaudit-0.0.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c4e77fa05da70b354aac105e12ffe952c1e400e1c3b919023e80ab54831dcd8 |
|
MD5 | 99441c3de52e9d472942e7d80ed26c63 |
|
BLAKE2b-256 | a285194f86e3e12b6627208810d0c4c40242d98aaa0375810e5e73c56b5f7be7 |
Close
Hashes for pyrustaudit-0.0.2-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e405c9019793ccdc898a85efe6600018db24f0c320af3c6bbb20e8010fc84dc9 |
|
MD5 | 5a19425a4d7a957205f371b9c800ce15 |
|
BLAKE2b-256 | e50e7393965f54fdcda45cc348ffe327f7a62e7e8804ccbdd63aa22fb2f336fc |
Close
Hashes for pyrustaudit-0.0.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50f2d218338ce2efd4db3b1bc3ea2d6b95de383fdada81c980366f81dec96bf0 |
|
MD5 | 8924ca34f3fd38dda41b5bd04b0f8033 |
|
BLAKE2b-256 | 7f9c1be74011b2f70decaf49d59ef8d2c08c8d31b36b0c1cb12759269d6e0420 |
Close
Hashes for pyrustaudit-0.0.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f65b35bfdeb400149cceecd5b41fe70a20e213d8d9c6ad503a322ca7c53bbc6 |
|
MD5 | a8968e8e9d80e73cbf9bbcf6e6a1df4b |
|
BLAKE2b-256 | d121f5fc55fe54aba5877f628730ff1751a33a096ebcf0bcac9ba5752ed4fa00 |
Close
Hashes for pyrustaudit-0.0.2-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 334a1f1e3795048a265affb981b600e63ea708cce7afd00a5e5a808820534d4f |
|
MD5 | 0fcd69d2c7f90c823a43fc759946596b |
|
BLAKE2b-256 | bf2db9fc9885f2cf84053ec21929e1c56540f4e24856fb88101b6533d769fb5a |
Close
Hashes for pyrustaudit-0.0.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c20d0e25a251a41b960ed92f41dc7a8db67bda034a0259bda84068d30548166 |
|
MD5 | 0513cd69db10364db19bbf22c362bca3 |
|
BLAKE2b-256 | 8342b29a4b6b4c3da171b8a3e71f9be8110715d0a494d38944f39b0a36c38478 |
Close
Hashes for pyrustaudit-0.0.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 526be94e38188e7132d22151aa3629097b915e7ebbf5a46e7ec6ccdf3b0b20e9 |
|
MD5 | 2526c9fb367e146826c7bc950e00e5dc |
|
BLAKE2b-256 | 9d19045296c79b42b7ed772d09568bbf61481fac77747532a29cb727556de8d4 |
Close
Hashes for pyrustaudit-0.0.2-cp36-cp36m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3c02636933274a7bcea63dc676b814b9443c6a1eb3c4cd43fac68a74e0e67fe |
|
MD5 | 801984e9d2490a465319314c4a91febd |
|
BLAKE2b-256 | 03d4956b7d65a0c435a40cf8d2e1fd4c33e234b63512f1e0e9ce0d1113f3b87b |
Close
Hashes for pyrustaudit-0.0.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 056a8c2d5721fdd679c988c86eba819572b8972c4dd8bc3ba822b5b04ca899ba |
|
MD5 | cc0cf4b0c9646e20e25e4e6a62b08221 |
|
BLAKE2b-256 | bf4b4e5d071db7e5728dbe350a7eb59da772709cec8f452467d0914d090c99c5 |
Close
Hashes for pyrustaudit-0.0.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca32b9d0c8868b5fcebb388e5fcf2d478138a69bed1ee528b4f2780eafd1e3dd |
|
MD5 | 4204f3c4462e7a73f9a3bf9ba83d68d5 |
|
BLAKE2b-256 | 39c90883ed5e3614a8d3b4b0a9adfa972d47582838510a8003d4db0bcc056e9f |