Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/FrankC01/pysui
SUI Python Client SDK
https://github.com/FrankC01/pysui
blockchain client-sdk python sdk-python sui
Last synced: 2 months ago
JSON representation
SUI Python Client SDK
- Host: GitHub
- URL: https://github.com/FrankC01/pysui
- Owner: FrankC01
- License: apache-2.0
- Created: 2022-09-04T15:19:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T09:06:58.000Z (3 months ago)
- Last Synced: 2024-04-11T10:29:29.071Z (3 months ago)
- Topics: blockchain, client-sdk, python, sdk-python, sui
- Language: Python
- Homepage:
- Size: 1.77 MB
- Stars: 96
- Watchers: 4
- Forks: 22
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Lists
- awesome-move - Python SDK
- awesome-sui - Python SDK
README
# pysui
Python Client SDK for Sui blockchain
- Supports _SUI 1.17.x RPC API_
- Backwards compatable to _Sui 1.12.x RPC API_## pysui SDK Dependencies
- Rust (stable) for installation of Sui Binaries (optional) and building `pysui-fastcrypto` Rust wrapper (required)
- Python version >= 3.10## pysui SDK current (github)
**Release-0.51.3**
See [CHANGELOG](https://github.com/FrankC01/pysui/blob/main/CHANGELOG.md)
## PyPi current
**Release-0.51.2**
- [Latest PyPi Version](https://pypi.org/project/pysui/)
## Sui GraphQL RPC service beta
MystenLabs announcement can be found [Here](https://github.com/mystenLabs/sui/issues/13700). This change transitions
from JSON RPC to GraphQL RPC.With pysui 0.50.0 we released `pysui`'s initial alignment with MystenLabs strategy. The timeline of changes will keep up with the Timeline as noted in the Sui GraphQL annoucement.
Note: The MystenLabs/Sui GraphQL RPC is currently only available on testnet
pysui 0.51.2 contains support for our January 2024 target:
1. **_December 2023_**: Synchronous and asynchronous GraphQL clients (experimental) with intial 'read' queries parallel to current pysui read _Builders_. Also expose underlying GraphQL for users to craft their own queries.
2. January 2024: Continue with GraphQL and Builder parity changes. Mysten to roll out live data to devnet, testnet and mainnet.
3. February 2024: Deprecate pysui Builders and existing SuiClients and enable SuiClient GraphQL 'streaming' support.
4. Sometime in 2024: Remove Builders and Obsolete SuiClients and bump pysui to version 1.0.0.You can read pysui documentation on graphql [here](https://pysui.readthedocs.io/en/latest/graphql.html)
### FULL Documentation
- [ReadTheDocs](https://pysui.readthedocs.io/en/latest/index.html)
### Changelog
See [CHANGELOG](https://github.com/FrankC01/pysui/blob/main/CHANGELOG.md)
### Issues and enhancement requests
We would appreciate using the [github issue log](https://github.com/FrankC01/pysui/issues) to let us know!
### Release/Publish Strategy
See [Strategies](https://github.com/FrankC01/pysui/blob/main/OP_STRATEGIES.md)
### Discord
Discord server [click here](https://discord.gg/uCGYfY4Ph4):
### Additions
There is a companion package called [pysui-gadgets](https://github.com/FrankC01/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](https://github.com/ChainMovers/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 packagesYou 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](https://github.com/FrankC01/pysui/blob/main/DEVELOP.md) from repo
### Activate
`source env/bin/activate`
or
`. env/bin/activate`
### Install `pysui`
`pip install pysui`
## Samples
See [samples](https://github.com/FrankC01/pysui/blob/main/samples/README.md)