Python Client SDK for Sui blockchain
- Rust (stable) for installation of Sui Binaries (optional) and building
pysui-fastcrypto
Rust wrapper (required) - Python version >= 3.10
Release-0.75.0
- Supports SUI 1.40.x JSON RPC API, SUI 1.40.x GRAPHQL
- JSON RPC API backwards compatable to Sui 1.33.x
See CHANGELOG
Release-0.74.0 - Released 2024-12-24
- Supports SUI 1.40.x JSON RPC API, SUI 1.40.x GRAPHQL
- JSON RPC API backwards compatable to Sui 1.33.x
Adds beta SerialTransactionExecutor
Here are the initial docs
Wouldn't mind a cup to keep me going! Sui Address 0xc45e5ea887e037ddc6a482afa412773b4291c8fdc338f647fb0fcea324975d8e
MystenLabs announcement can be found Here. This change transitions from JSON RPC to GraphQL RPC.
Note: MystenLabs/Sui GraphQL RPC is available on devnet, testnet and mainnet. Note that devnet beta is usable but we recommend using testnet or mainnet beta for stability. We are tracking a few failures we are monitoring Isssues.
Note: Functionality of pysui GraphQl should be considered beta, use in production at your own risk.
With pysui 0.50.0 we released beta pysui
's beta alignment with MystenLabs strategy. The timeline of changes will keep up with the Timeline as noted in the Sui GraphQL annoucement. We are not yet stable however we have Clients and TransactionBuilder running against Sui GraphQL.
We continue to monitor and support changes from MystenLabs as they occur.
- pgql_s_example - Synchronous examples for all supported QueryNode queries and mutations
- pgql_a_example - Asynchronous examples for all supported QueryNode queries and mutations
- pgql_s_ptb - Example of new pysui Transaction Builder leveraging Sui GraphQL
You can read pysui documentation on graphql beta here
- No subscription support at this time
See CHANGELOG
We would appreciate using the github issue log to let us know!
See Strategies
Discord server click here:
There is a companion package called pysui-gadgets with a few utilities and ge-gaws that you may find interesting. It is a separate package also on on PyPi.
We leverage suibase for our testing and SuiConfig includes an option for interacting directly with local nodes created by suibase
Requires:
- Linux or macos (x86_64 or Mx)
- Rust (stable) which also includes rustup and cargo
- python 3.10 or greater
- pkg-config
- libtool
- sui binaries to support
publish
Sui move packages
You will need suibase
for interacting with local nodes, it is an indispensible addition to Sui developers tools!
python3 -m venv env
If, instead, you want to work with repo latest source code then read DEVELOP from repo
source env/bin/activate
or
. env/bin/activate
pip install pysui
See samples