Schema parsing via Rust bindings
This repository holds the Rust bindings in src/lib.rs. They are simple exports of functionality
from concordium-contracts-common. To build them locally, you require maturin and Rust installed.
We've tested with Rust 1.74 and 1.77.
Project structure
The entrypoint for Python consumers is the ccdexplorer_schema_parser package which has a
single class Schema. The constructor will instantiate the schema from a
deployed Wasm module.
After that the constructed object can be used to parse events or return values using the schema in the module.
from ccdexplorer_schema_parser.Schema import Schema
from ccdexplorer_fundamentals.enums import NET
from ccdexplorer_fundamentals.GRPCClient import GRPCClient
from ccdexplorer_fundamentals.GRPCClient.types_pb2 import VersionedModuleSource
versioned_module: VersionedModuleSource = (
self.grpcclient.get_module_source_original_classes(
module_ref, "last_final", net=NET(net)
)
)
schema = Schema(versioned_module.v1.value, 1) if versioned_module.v1
else Schema(versioned_module.v0.value, 0)
To parse a logged event from an account_transaction, use the following call:
event_json = schema.event_to_json(
source_module_name, bytes.fromhex(event)
)
Where source_module_name is the name of the module (corresponding to the module_ref you have used to parse the schema and event is the hex representation of the logged event).
If this can be parsed, the result will be a dictionary.
Building
Run pip install -r requirements.txt to install dependencies.
Run maturin build to build the project.
This will produce a python wheel in target/wheels that will contain both the
compiled Rust binaries and python wrappers. The compiled package is platform
specific, so a package built on, e.g., Linux will not work on Windows.
Deploy
This repository has a CI.yml that builds this package for various configurations and publishes this to Pypi.
Metadata
Release files for ccdexplorer-schema-parser 0.1.14
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 |
|---|---|---|---|---|
| ccdexplorer_schema_parser-0.1.14.tar.gz | 22.8 kB | Without provenance | Details for ccdexplorer_schema_parser-0.1.14.tar.gz |
Built distributions (wheels)
Total release size: 13.8 MB
Release files / ccdexplorer_schema_parser-0.1.14.tar.gz
| Download URL | ccdexplorer_schema_parser-0.1.14.tar.gz |
|---|---|
| Size | 22.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23c1001050f97e3ed312c64fede16db20c4dc94745b049857ba01a6ab7f7063a
|
|
BLAKE2b-256 checksum How to use checksums |
95e226599dc458321e70b27b83cbee94a8fa2faafbe151d475de760ec030fd99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 627.6 kB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.10 PyPy 3.10 7.3 |
|
SHA-256 checksum How to use checksums |
69ed6a40b57dc74ebe992e897e334ccaf8598e9cb93c2648d823ca37791e8dcb
|
|
BLAKE2b-256 checksum How to use checksums |
e3afb53f90637bec16137798679eea0ed5c45a7898112b76074ebef91913a4f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 612.2 kB |
| Tags | Linux glibc 2.17+ ARMv7l PyPy 3.10 PyPy 3.10 7.3 |
|
SHA-256 checksum How to use checksums |
e3b307d857630a745cb60ef517989d25523810c7d732905f37731c993e2afd8c
|
|
BLAKE2b-256 checksum How to use checksums |
019c47c06686735fec4930a4fdcab906d1d41d75176e4c82cdc6409b03e0fe4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 627.6 kB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.9 PyPy 3.9 7.3 |
|
SHA-256 checksum How to use checksums |
473da638b409ab182bb3a25dc60e1644d58778f1fb4ec424863c3d663837bd63
|
|
BLAKE2b-256 checksum How to use checksums |
b7a5b885bbc6f1dbe04f4818efeb65f2521ef33cf19b6c166815de702112f683
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 612.2 kB |
| Tags | Linux glibc 2.17+ ARMv7l PyPy 3.9 PyPy 3.9 7.3 |
|
SHA-256 checksum How to use checksums |
d9c3a900005bbe34468cf75eacd37ecbb8fa7c42c6d8ba73f79a2692d1a326f9
|
|
BLAKE2b-256 checksum How to use checksums |
8254b9edd98205f59fa80b2442be62fedd8a151e2abd827808c14e11d80235e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 612.3 kB |
| Tags | Linux glibc 2.17+ ARMv7l PyPy 3.8 PyPy 3.8 7.3 |
|
SHA-256 checksum How to use checksums |
b40efa83ad0dadb65b1e9687eb302307ed40ed3b0f4597420a01b023230ff868
|
|
BLAKE2b-256 checksum How to use checksums |
d1c79a2da067b7868738a66cb350bd5befc3df40d93260ff084b9bd405dd4ca2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 627.1 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
125e955d5f0f068db5ce00d849c63662c873d4d1755a52e68c1ea9e88e88550b
|
|
BLAKE2b-256 checksum How to use checksums |
8d7b55ef939bfb47ab84cc96a98a1679ae0861d9b5d04a670e02335528e1dd87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 611.6 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARMv7l |
|
SHA-256 checksum How to use checksums |
089d5293ede34af5f27d81b0d4072e63afe3191ae35de4de48fbda4e425afe87
|
|
BLAKE2b-256 checksum How to use checksums |
ae63e75455a5e33f8bc071907c223778fec331cce02a0b7849674c4164ea6570
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 556.4 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7587ed99d91ff302f4e1ff97a611482716762e0e3b750246a2811bb3b6529661
|
|
BLAKE2b-256 checksum How to use checksums |
ee8ca77a43134f0685a325592c437788908890ddcdae6b00277c58f715b095c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp312-cp312-macosx_10_12_x86_64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp312-cp312-macosx_10_12_x86_64.whl |
|---|---|
| Size | 578.1 kB |
| Tags | CPython 3.12 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
0f47fd876c3ac2a5abdcf8da7e5cb3fa511feb379a0725fc9016e58096384dd4
|
|
BLAKE2b-256 checksum How to use checksums |
9230218fe4e498d3877e73576d500a8855ab57573931c97100926c5151634b80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 627.4 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
c8e108bfe0fa5ca08f9dd211014b87056b2b951f8bf5fef75628efed024ca070
|
|
BLAKE2b-256 checksum How to use checksums |
d8d902d6bc89a7827efafd587a521542bb0de9fdfe8f0485eccc6ae8130e013c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 612.1 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARMv7l |
|
SHA-256 checksum How to use checksums |
f924556f7fa8c4756840a2149976bffffeab2782603a3c81fb64e99ffbd6eef7
|
|
BLAKE2b-256 checksum How to use checksums |
72e83664d3aa2a6eb488fd3e1ba9bbda5fb444e468e28c372d6013bc69cbce74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 556.8 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6c7cf07eccd365f1bf3eaf355e4ba44aae5e27e83ac90c1a15d45908cefdf9dc
|
|
BLAKE2b-256 checksum How to use checksums |
db9203292775b82167aac1ae1627ce2d16404d4e84c5dfe336d773b38f62d7ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp311-cp311-macosx_10_12_x86_64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp311-cp311-macosx_10_12_x86_64.whl |
|---|---|
| Size | 578.6 kB |
| Tags | CPython 3.11 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
c91c9aa68e1bd27403e3f1a32808a752c8e27c1d173a95edfe4eb4dac35897e2
|
|
BLAKE2b-256 checksum How to use checksums |
081c68af9f6e2d2b7417c903a402eef5b304b5c430ef403659ad1f4a2c76254e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 627.5 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
3cbea2b201f045e4dc01f2988a4335030025249c909d3c128d50f298b6c4610e
|
|
BLAKE2b-256 checksum How to use checksums |
97b94d017210dd7566d154a1d58830a89c410a3b10635dad9c357c3c963e8310
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 612.1 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARMv7l |
|
SHA-256 checksum How to use checksums |
4bb9a1e80553eb964620c32bb138040491fd619c735b4722aa4c299f04b50f25
|
|
BLAKE2b-256 checksum How to use checksums |
1cbcce9df28508f872e9b11e7a7fca8624d4a51f3ee329984e74b7111753a98f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 556.8 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
39f2834a226cb542cc95d5b004ecab923d2629076843c6e7b63fd27cd34ebe07
|
|
BLAKE2b-256 checksum How to use checksums |
c9f84b181a4b765756b1ee01065d531c756889c514c8054151339482369e9c7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp310-cp310-macosx_10_12_x86_64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp310-cp310-macosx_10_12_x86_64.whl |
|---|---|
| Size | 578.5 kB |
| Tags | CPython 3.10 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
786502a68add6722994b5cccb8496cda8fd33d7f79cd16a80a88b4e16f51e90b
|
|
BLAKE2b-256 checksum How to use checksums |
e6d9690d9f090ae5848f64a0bf36e92a29afa11b0539b3ced3a1c527fa7aa26e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 627.5 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
da527e4400d4aa72fdb0ad89c5e213130e6cc522c83c29c77e7e69ff5860191e
|
|
BLAKE2b-256 checksum How to use checksums |
deb3fdf706dd0b6854a9bc381f1387e4e102576f2e166b19721053875c424c5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 611.7 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARMv7l |
|
SHA-256 checksum How to use checksums |
4153cecede58fa98b602c8fd917932735e89e0738860f4d0a29b49790066c1f5
|
|
BLAKE2b-256 checksum How to use checksums |
0fc9f4062b8bd3d5b42f0a596633856f5b20edaf6980cd94bca3fdd9f81fc9d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 556.6 kB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6824af98e5cbc549247f884b33e4da61b5057e469dd5a60c5d61314b451f6547
|
|
BLAKE2b-256 checksum How to use checksums |
dee4ee83358ee2eca510d03c351c184b2138f47e4b835b35a441e226d3114eab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp39-cp39-macosx_10_12_x86_64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp39-cp39-macosx_10_12_x86_64.whl |
|---|---|
| Size | 578.5 kB |
| Tags | CPython 3.9 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
fd79a4ddd2d03a8460f78343a72bf07b9c6edce6935547b55b4b48f3c3a6c9bc
|
|
BLAKE2b-256 checksum How to use checksums |
218603a6bcfddfe476bb28af764fd99c837df26f687eb849ff524ed9834892f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 626.7 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
7272d84cfb2fd16527755906b634fde25d7232e6601ca5a9812c8333ad4eb6ad
|
|
BLAKE2b-256 checksum How to use checksums |
93c302f8d75fd1b5b73caf9d22f9b1f687762332fae72aefaf63f0026dcd4103
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Release files / ccdexplorer_schema_parser-0.1.14-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | ccdexplorer_schema_parser-0.1.14-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 611.2 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARMv7l |
|
SHA-256 checksum How to use checksums |
913258252422126e57c1824c91de52d0ef70f3cc0b4d61b0f0be1d7e86d402de
|
|
BLAKE2b-256 checksum How to use checksums |
81fca7aeb35913bf54f10717a71ba9ac48c6b00c71894fa5004716b5283bf22b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.6.0
|
Security for ccdexplorer-schema-parser 0.1.14
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.