Rust Python modules for interacting with Metaplex's NFT standard.

Overview

Simple Metaplex Metadata Decoder

Install the correct Python wheel for your Python version with pip:

pip install metaplex_decoder-0.1.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl

Example Python usage:

from metaplex_decoder import *
account_info = "..." # Base58 string
metadata = deserialize_metadata(account_info)

Releases

Various versions of the Many Linux Python wheel are available on the releases page.

Build With Rust

Install Rust.

Use virtualenv to create a Python virtualenv environment and then activate it:

virtualenv env
source env/bin/activate

Install maturin:

pip install maturin

For Linux build in docker with the ManyLinux image:

docker run --rm -v $(pwd):/io konstin2/maturin build --release

For MacOSX:

maturin build
You might also like...
Implementation of Monte Carlo PI approximation algorithm in Rust Python bindings

rusty_pi Implementation of Monte Carlo PI approximation algorithm in Rust Python bindings. Time of 100M iterations approximation on Core i7 10th gen:

A simple library to allow for easy use of python from rust.

Rustpy A simple library to allow for easy use of python from rust. Status Currently this library has not received much love (pull requests welcome for

Pyo3 - Rust bindings for the Python interpreter

PyO3 Rust bindings for Python, including tools for creating native Python extension modules. Running and interacting with Python code from a Rust bina

RustPython - A Python Interpreter written in Rust
RustPython - A Python Interpreter written in Rust

RustPython A Python-3 (CPython = 3.9.0) Interpreter written in Rust 🐍 😱 🤘 . Usage Check out our online demo running on WebAssembly. RustPython req

Robust and Fast tokenizations alignment library for Rust and Python
Robust and Fast tokenizations alignment library for Rust and Python

Robust and Fast tokenizations alignment library for Rust and Python Demo: demo Rust document: docs.rs Blog post: How to calculate the alignment betwee

Very experimental Python bindings for the Rust biscuit-auth library

Overview This is a very experimental take on Python bindings for the biscuit_auth Rust library. It is very much a work in progress (limited testing, m

Python bindings for heck, the Rust case conversion library

pyheck PyHeck is a case conversion library (for converting strings to snake_case, camelCase etc). It is a thin wrapper around the Rust library heck. R

Arrowdantic is a small Python library backed by a mature Rust implementation of Apache Arrow

Welcome to arrowdantic Arrowdantic is a small Python library backed by a mature Rust implementation of Apache Arrow that can interoperate with Parquet

Python module implemented in Rust for counting the number of one bits in a numpy array.

bit-counter Package for counting the number of one bits in a numpy array of uint8 values. Implemented as a Python module using Rust, providing high pe

Comments
  • Unexpected variant index: 182

    Unexpected variant index: 182

    Heyoo Samuel!

    Thanks for your utilities, I really appreciate it. I am trying to use the decoder but getting an error.

    When running:

    from metaplex_decoder import *
    metadata = deserialize_metadata("DFtbQ8mvTwmycT4bTFK4xVCkYNMW2NKGTkaaPKGBze4c")
    

    I get:

    thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: InvalidInput, error: "Unexpected variant index: 182" }', src/lib.rs:21:65
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: Custom { kind: InvalidInput, error: "Unexpected variant index: 182" }
    
    

    Ubuntu 20.04 Python 3.9.7 (default, Sep 16 2021, 13:09:58) [GCC 7.5.0] :: Anaconda, Inc. on linux

    opened by MarioProjects 2
Owner
Samuel Vanderwaal
Samuel Vanderwaal
Create, open, manage your Python projects with ease, a project aimed to make python development experience a little better

Create, open, manage your Python projects with ease, a project aimed to make python development experience a little better

Dhravya Shah 7 Nov 18, 2022
Simulation tools for animating interacting soft objects

Softy Simulation tools and libraries for animating rigid and soft objects (including cloth) subject to frictional contacts against smooth implicit sur

Egor Larionov 23 Jul 7, 2022
Rust bindings for writing safe and fast native Node.js modules.

Rust bindings for writing safe and fast native Node.js modules. Getting started Once you have the platform dependencies installed, getting started is

The Neon Project 7k Jan 4, 2023
A weekly dive into commonly used modules in the Rust ecosystem, with story flavor!

Rust Module of the Week A weekly dive into commonly used modules in the Rust ecosystem, with story flavor! Build status Release Draft The goal The goa

Scott Lyons 20 Aug 26, 2022
Facilitating high-level interactions between Wasm modules and JavaScript

wasm-bindgen Facilitating high-level interactions between Wasm modules and JavaScript. Guide | API Docs | Contributing | Chat Built with ?? ?? by The

Rust and WebAssembly 5.9k Jan 8, 2023
Instrument and transform wasm modules.

wasm-instrument A Rust library containing a collection of wasm module instrumentations and transformations mainly useful for wasm based block chains a

Parity Technologies 31 Dec 16, 2022
Zinnia is a runtime for Filecoin Station modules. It provides a sandboxed environment to execute untrusted code on consumer-grade computers.

?? Zinnia Zinnia is a runtime for Filecoin Station modules. It provides a sandboxed environment to execute untrusted code on consumer-grade computers.

Filecoin Station 5 Jan 25, 2023
Rust <-> Python bindings

rust-cpython Rust bindings for the python interpreter. Documentation Cargo package: cpython Copyright (c) 2015-2020 Daniel Grunwald. Rust-cpython is l

Daniel Grunwald 1.7k Dec 29, 2022
Rust bindings for the Python interpreter

PyO3 Rust bindings for Python. This includes running and interacting with Python code from a Rust binary, as well as writing native Python modules. Us

PyO3 7.2k Jan 4, 2023
A script language like Python or Lua written in Rust, with exactly the same syntax as Go's.

A script language like Python or Lua written in Rust, with exactly the same syntax as Go's.

null 1.4k Jan 1, 2023