Skip to main content

SUI client Python SDK

Project description

PySui

pysui

Downloads

Python Client SDK for Sui blockchain

A cup of coffee

  • The team could use a cup or carafe. Sui address 0xc45e5ea887e037ddc6a482afa412773b4291c8fdc338f647fb0fcea324975d8e

pysui SDK install

With Rust on machine

pip install pysui if first time or pip install -U pysui if upgrading.

Without Rust on machine

  1. Fetch the latest pysui-fastcrypto binary from the release assets, unzip and pip install it
  2. pip install pysui

pysui SDK current (github)

Release-1.0.0

PyPi current

Release-1.0.0 - Released 2026-06-08

⚠️ Deletion Notice: Release 1.0.0 has removed the legacy JSON-RPC client and synchronous GraphQL client. If your code used either then use the Migration Guide on ReadTheDocs.

This is a significant release that redesigns pysui around the Unified Client Interface (UCI). It introduces breaking changes — see CHANGELOG for the full list.

Unified Client Interface (UCI)

The UCI provides a protocol-agnostic programming model: write application code once and run it transparently on either GraphQL or gRPC. The active transport is determined by configuration at runtime — no code changes required to switch.

The UCI is built on four pillars:

  1. Thin Client Design — pysui clients carry no convenience methods such as get_coins or get_object. All data access goes through typed request objects dispatched via await client.execute(command=...), keeping the client surface small and transport-neutral.

  2. Protocol-Agnostic Command Execution — Use await client.execute(command=...) with any SuiCommand subclass. The same code runs identically on both GraphQL and gRPC. Switching protocols requires only a configuration change.

  3. Shared Transaction Infrastructure — PTBs with unified transaction builders and executor factories work across all protocols. Obtain a transaction builder via await client.transaction(**kwargs), and executors via await client.serial_executor(options=...) or await client.parallel_executor(options=...).

  4. Protocol-Level Access — When you need capabilities beyond SuiCommand: use GraphQL QueryNodes via execute_query_node for custom queries, or gRPC Requests via execute_grpc_request for direct gRPC access.

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 invitation is Found here:

Sample utilities

Note: Sample utilities are implemented using pysui UCI

See samples

Project details


Release history Release notifications | RSS feed

This version

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysui-1.0.0-py3-none-any.whl (288.4 kB view details)

Uploaded Python 3

File details

Details for the file pysui-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pysui-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 288.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for pysui-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d938efd955102f44010b4942da4fe6b5b5a782c0bb508db4c7e22a9f95c1ef9e
MD5 9b5931d83a64ac4febef4843b35ae87a
BLAKE2b-256 52de5a5ba5d8fdd72220d2c15272dc1ee60d431007e79019cc1fa7c2a825ef7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page