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.1.tar.gz
(6.2 kB
view hashes)
Built Distributions
Close
Hashes for pyrustaudit-0.0.1-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b1449dc43d8fb39ebb7856face24ae83671bf76944bb335fc01a663e466fdf4 |
|
MD5 | dc5f9dc399a1715b99912d8faae74d2c |
|
BLAKE2b-256 | 26f70df53fe75c09732bc1e347fbe3a1d8651e4c45c288c04b270998e633040a |
Close
Hashes for pyrustaudit-0.0.1-pp310-pypy310_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ce879ecfb5f6a35df25fb88e01f70d28bf5ea90f46f3bf87258bb03373aed17 |
|
MD5 | dc5b94e66ac8114e3cb45a377ea2e6a1 |
|
BLAKE2b-256 | 1b05e526795c19aaddb0b90f40ef214f7ec55d1545b8e60e0b86cd34df8b576f |
Close
Hashes for pyrustaudit-0.0.1-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86f702ca608796a823356025cfc044eac2b029a90cacec6367ccb695036e08b6 |
|
MD5 | 5f536bc10e873a0bf8594e2a3c647e68 |
|
BLAKE2b-256 | b92ca3d2b4d32043e62c372e9518d387422dbe69bc1230e71b10f6f827939f1b |
Close
Hashes for pyrustaudit-0.0.1-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8c09c6aa32856fffd942cadd16d83b972e8b57cea7bb373d0d5506202d56f98 |
|
MD5 | 43df1b45b668affa508e3374eb0a9ac4 |
|
BLAKE2b-256 | f4d1ff0b3a29ee5d438f221b3df9f882018ace9eb7766704bf7acc964d31138e |
Close
Hashes for pyrustaudit-0.0.1-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c774398fb888175e3ca2e5958345b63a5b452338f89e85db62e03ccfdcae380 |
|
MD5 | 23a3df915be46750c5dafdff830039df |
|
BLAKE2b-256 | ed6806992bd654e0e54ccffd27cd2797945065ceeb12c403d85eb2e47ed244d4 |
Close
Hashes for pyrustaudit-0.0.1-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a30ce8bcd13bf6a1560a10e903ca23148856fcb8d167ccd49f7ab290049dd9e |
|
MD5 | 40eb41e5aea7107c4aede39b52859aad |
|
BLAKE2b-256 | 5cdd6b60961ba7b1b51a936a14f59d8a84ac4e00af64b1087db705c5a01d71bb |
Close
Hashes for pyrustaudit-0.0.1-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65569d3adc48469a72e4da691b1cb837ea7bd0738cfc4d51fb1743b1b215bce4 |
|
MD5 | c5baa8ce77c9a7eb41e245a341399028 |
|
BLAKE2b-256 | 1e69f781adc116a0e6fb316c87989bf9a70afc4fb23782a249c1576a0685917c |
Close
Hashes for pyrustaudit-0.0.1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e89b00c9b0e0bdeb27e604b31544d164d4a0f6ba6fb61420f4e23ad0a6c8e64 |
|
MD5 | 38a80ab02749b245fe479c9ca7848741 |
|
BLAKE2b-256 | be4eb395ef7f9f1d6ce76b5fd057360c39b7fbc7d29b7dec461c4ff8cbeaf6b6 |
Close
Hashes for pyrustaudit-0.0.1-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc8127e4c7368c8a9ad19209366a48fafd3e8d3b7208425e3da184946acf59ef |
|
MD5 | 233ae6d39e18fdcee5f8ec56b20fd8ef |
|
BLAKE2b-256 | 478281d4a9475661a0337064b3001e95ca7610094d443b2db4eb7deda43d9db5 |
Close
Hashes for pyrustaudit-0.0.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86ace79fcae3501eb371a56606fa2e7b0970a5ac933255fb6e6fb76bcaf2b0fd |
|
MD5 | d0645a146c8cf8bdf95d84acd08c0854 |
|
BLAKE2b-256 | 592bf574875959bf2cc94fd51b6b1742cbff00adf2d4fbf32ad513470eb7e39c |
Close
Hashes for pyrustaudit-0.0.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22290008ec8d314318d4b0b3a37160e22085c3b8e141f74320015abecafde3bc |
|
MD5 | 1ac2d806632952bad3de08710fdda316 |
|
BLAKE2b-256 | d76673f5f0ec6610d8db0b3f076a4d7c5737752eeab8777191d9f6612effe518 |
Close
Hashes for pyrustaudit-0.0.1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5780d3e6ed332f3e43bb9f55fbdd7eda9f1b52721d535051b21c337ebc9cef01 |
|
MD5 | a9adb81114cc1c7b4f70fcf5bcc2fb39 |
|
BLAKE2b-256 | 6ae14fd8f176c76791b805f56d552a57eeaaae797d73f03f40584400e4513845 |
Close
Hashes for pyrustaudit-0.0.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60162cd627945ba8183f5db165d7b04f946b45d39b0645178fc2f7ec7e5d9264 |
|
MD5 | f81d6b8648e246dd7f1437628edbf03b |
|
BLAKE2b-256 | db1599eafd47247d384b29c3c92e19258b6f98a5a5471b8e8f9bbd73ffb0d969 |
Close
Hashes for pyrustaudit-0.0.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48a9fb605126be3a3e0f519a53c2fc33b44b67c68231d5f88e721d30a31dab24 |
|
MD5 | ee87a0d53b30bcb7cdbcbb29a40fa6f2 |
|
BLAKE2b-256 | 60f41432b34447a50a33ee18356e5e684774644e527345f80e0b8951fe806d1b |
Close
Hashes for pyrustaudit-0.0.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f983d0623b4fd006dc50c6076ef2adf8f9f597bbdc979e3d1e8e975e2e8a4d2 |
|
MD5 | 80977a27931c534cd4e9c6ad8d4f0e71 |
|
BLAKE2b-256 | a3a2350ebb94e3ca5b2fad56d8edea80dad65ab9d584ec6dc2f109b7bc70556b |
Close
Hashes for pyrustaudit-0.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de1369ae05e336dab64a803d02f2b2c1e86ffdd2d7b9b96256b8ac392e35a9c9 |
|
MD5 | 09c4bf6f5098b2b9c4d1fe338857e7c6 |
|
BLAKE2b-256 | 2355ca5527bf8b85aff5f2fa92d36ff17775c00a15abeb032846b11682987f86 |
Close
Hashes for pyrustaudit-0.0.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9583ccf29700c9a0c7edda4bd487af50a63479263ffcf63c8d0aa03c8a6a8fd |
|
MD5 | 0ff2bc562f579a8ece5f0e363c346416 |
|
BLAKE2b-256 | 641985f9c0d44d99a09219c94c28fab3275a40cde2b9a42a4f475984eb541190 |
Close
Hashes for pyrustaudit-0.0.1-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ef5e061451cdb4eb6d3f9d3de953a19089dc52c0604a0dad04456ecdb9e619e |
|
MD5 | 321ca5dd9a842d409fc4cdff5b25a084 |
|
BLAKE2b-256 | 52c6258fea979645d79106f5d18a2f3306073fb559ba37cdd25ebd8590909113 |
Close
Hashes for pyrustaudit-0.0.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3f452ad15fddd3567c02e0e577605e39abbf36f28d539d0ba5af6d0844fb08b |
|
MD5 | cfdeff8ccdfb3fbfed56f7a91502fe46 |
|
BLAKE2b-256 | 14f6ed7fe098215a36ecc6b5082fbb28a7e77787f1341f25f9e09a356e80887a |
Close
Hashes for pyrustaudit-0.0.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78575cd4ff63fbbbf2a170398e9141e255675600ce764f27afbac1f450513a26 |
|
MD5 | 294691c0f24e5d5ecb322592e7b97c9f |
|
BLAKE2b-256 | dc8e96990c7579a58f614064fc56b1d743009eece8672567e094ebba8621b43b |
Close
Hashes for pyrustaudit-0.0.1-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d8bb35bd2f5f0a2cf934bb3dff079612f5eafb4a003a2b95a545f3dfc195e36 |
|
MD5 | 0837adf37263d0918be41cb6ca396efa |
|
BLAKE2b-256 | a69f478cfc875c998e4d0fe7f2a7b515ad096b4179f57d9c0dd13d11d5c79c55 |
Close
Hashes for pyrustaudit-0.0.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62cc2b9bc368dce37e7ca651126384e5a8af4b31434dd83d96e71c52758c7697 |
|
MD5 | 46d162eae3252658dcc6cea886a97beb |
|
BLAKE2b-256 | f25f0cb84bd0778bec9759def1e0e3c2ff5ba9b9829f34d06de17f9b5194ea2a |
Close
Hashes for pyrustaudit-0.0.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b96ee7de12bc48c88778bd48a4f2c4c5e1f25e409bb2d9379d75c9fd14812ac |
|
MD5 | c0c4437ec51cf097c623fc71951b8487 |
|
BLAKE2b-256 | 14d4063384db491452a979c6abd8d2c2676f5456b2d150418c1c8c42edc40d0b |
Close
Hashes for pyrustaudit-0.0.1-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a26e405b888b5972bc227f72b53be32beee14eaff933e01b8343dbdecb4d13d |
|
MD5 | a4db7158faeeb0386eec2854d95f7148 |
|
BLAKE2b-256 | cf959816428a24389a72cfd736acb2f2271886762436be58fe5263ac6c107c40 |
Close
Hashes for pyrustaudit-0.0.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 538c7d8db26253d9ccae5e585e328ef1dd4e2fa077f678f727516f47dc90103a |
|
MD5 | 176f6e5bf721587ba0cf7ed22a011430 |
|
BLAKE2b-256 | c43f6c29baedab7eec7f55317eb89f2a64e076620e74bf21e07f130132532908 |
Close
Hashes for pyrustaudit-0.0.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9be880e632b27c1368d817934f828a46fb507acb78021d0068bfa2b74e0e7366 |
|
MD5 | d577ec454fad0025345802349eb3b7bc |
|
BLAKE2b-256 | 10ff464d221df443885384d19c4711f04140da643699c588ca43af359067e017 |
Close
Hashes for pyrustaudit-0.0.1-cp36-cp36m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6edc4beb0eb7d427e9356f36e36221cfe71cdb282d95169bae383625c0164699 |
|
MD5 | 0ca7ad14b9414ae2c4fdbc30b3c09ce3 |
|
BLAKE2b-256 | c4ac71583494ccfac19ef4336694e5fb71d7412ba7563c11bea06fc9a8a14267 |
Close
Hashes for pyrustaudit-0.0.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86b7e625df43ff9e0c2bba77250f591eefc246f84f6d218c8fc9e4df48030bbf |
|
MD5 | afd7020bb7b3c0b3faf94cbe18caf551 |
|
BLAKE2b-256 | 3ada5a6bca1b24310be0d17b4c3702590dc43ff8e90d80a21fb109d1b552800a |
Close
Hashes for pyrustaudit-0.0.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 727b838498450135d4b757d21c0828e436ef27d13ab42bc314437dac0852479d |
|
MD5 | 73e5518b69f3f7c6860202360ab9f50a |
|
BLAKE2b-256 | 374f92db66018aaf9e5aee2b2a20087ef73f4f97fb10cbef9cb4701c2d701b1e |