SUI client Python SDK
Project description
pysui
Python Client SDK for Sui blockchain
pysui SDK Dependencies
- Rust (stable) for installation of Sui Binaries (optional) and building
pysui-fastcrypto
Rust wrapper (required) - Python version >= 3.10
Note: If moving from 0.51.0 or earlier it is recommended to start a new virtual environment and installing from PyPi!
pysui SDK current (github)
Release-0.59.0
- Supports SUI 1.25.x RPC API
- Backwards compatable to Sui 1.18.x RPC API
See CHANGELOG
PyPi current
Release-0.59.0 - Released 2024-05-02
-
Supports SUI 1.24.x RPC API
-
Backwards compatable to Sui 1.18.x RPC API
Sui GraphQL RPC beta
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
Sui GraphQL IDEs
pysui GraphQL support
With pysui 0.50.0 we released beta pysui
's initial alignment with MystenLabs strategy. The timeline of changes will keep up with the Timeline as noted in the Sui GraphQL annoucement. We are not more stable and have Client and TransactionBuilder running against Sui GraphQL.
We continue to monitor and support changes as they evolve.
Examples
- Synchronous Client - Examples for all supported QueryNode queries and mutations
- Asynchronous Client - Examples for all supported QueryNode queries and mutations
- Synchronous TransactionBuilder - Example of new pysui Transaction Builder leveraging Sui GraphQL
You can read pysui documentation on graphql beta here
Known Issues
- Sui GraphQL fails fetching ProtocolConfiguration versions greater than 39
- No subscription support at this time
FULL Documentation
Changelog
See CHANGELOG
Issues and enhancement requests
We would appreciate using the github issue log to let us know!
Release/Publish Strategy
See Strategies
Discord
Discord server click here:
Additions
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.
Local node support
We leverage suibase for our testing and SuiConfig includes an option for interacting directly with local nodes created by suibase
Ready to run
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!
Setup environment
python3 -m venv env
If, instead, you want to work with repo latest source code then read DEVELOP from repo
Activate
source env/bin/activate
or
. env/bin/activate
Install pysui
pip install pysui
Samples
See samples
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file pysui-0.59.0-py3-none-any.whl
.
File metadata
- Download URL: pysui-0.59.0-py3-none-any.whl
- Upload date:
- Size: 233.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e276f1f118d36f2431191bdcc246f4a1ef94173686057e1df905ac1c1573fae0 |
|
MD5 | 5001378ef10db08e676cc5fd70c519ce |
|
BLAKE2b-256 | eb1f2170fafca62f929c3a38969feb1059f6767c8ca75d27efe6a91c20a5792c |