Wrapper around MeasureSuite.
In fact there are two wrappers. First a simple C command line interface, which
allows you to pass C code and the corresponding asm block. The program then
compiles automatically the needed shared library for MeasureSuite and runs
it. This simple command line interface is then again wrapped in a python library
which allows for an even easier usage.
Build:
Run:
git clone --recursive https://github.com/FloydZ/MeasureSuiteCommandLine
cd MeasureSuiteCommandLine
pip install -r requirements.txt
./build.sh
and that should do it. If you have nix install you can alternatively run:
git clone --recursive https://github.com/FloydZ/MeasureSuiteCommandLine
cd MeasureSuiteCommandLine
nix-shell
NOTE: currently the nix approach is broken, as the relative import from git
via requirements is not possible.
C Interface
After you build the library a binary main is available in build. Use it
like so:
./main "#include <stdint.h>
void add_two_numbers(uint64_t *o, const uint64_t *i0, const uint64_t *i1) {
*o = *i0 + *i1;
}" "mov rax, [rsi]
add rax, [rdx]
mov [rdi], rax
ret
"
After everything run successful you should see the output:
{
"stats":
{
"countA": 1,
"countB": 1,
"chunksA": 0,
"chunksB": 0,
"batchSize": 1,
"numBatches": 1,
"runtime": 0,
"runOrder": "ba",
"checkResult": true
},
"times": [[-1,4792,1196],[798,-1,771]]
}
Python Wrapper:
c_code = "#include <stdint.h>\nvoid add_two_numbers(uint64_t *o, const uint64_t *i0, const uint64_t *i1) {\n *o = *i0 + *i1;\n}\n"
asm_code = "TODO"
w = MS([c_code, asm_code])
d = w.run()
print(d)
Metadata
Release files for MeasureSuiteCommandLine 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| measuresuitecommandline-0.3.0.tar.gz | 12.0 kB | With provenance | Details for measuresuitecommandline-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| measuresuitecommandline-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for measuresuitecommandline-0.3.0-py3-none-any.whl |
Total release size: 24.4 kB
Release files / measuresuitecommandline-0.3.0.tar.gz
| Download URL | measuresuitecommandline-0.3.0.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e22cabeacdc767baaf9ecde03db202f7576490ca7521af8ad331e70954d43b0
|
|
BLAKE2b-256 checksum How to use checksums |
ba0b13da8c480305022fd56c6015a6e38d0e8575f891e735f72f654c74f156fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 May 14, 2025.
Transparency logRelease files / measuresuitecommandline-0.3.0-py3-none-any.whl
| Download URL | measuresuitecommandline-0.3.0-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e1890ebeff5bed667efa1c1d937e1171be3395e4346bc18def3ca838b9e8c8c
|
|
BLAKE2b-256 checksum How to use checksums |
8135b3334b3b4cd8d4399da02825858bd9e85c4ef6fd9b361e1a567a32e55afb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 May 14, 2025.
Transparency logSecurity for MeasureSuiteCommandLine 0.3.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for measuresuitecommandline-0.3.0.tar.gz
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 May 14, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.