Sui Name Service Python SDK
Python Sui Name Service SDK Client - built by community with pysui
Quick Start
Install suinspy
pip install suinspy
poetry add suinspy
Using git support:
pip install git+https://git@github.com/andreidev1/suinspy.git
Configure pysui with your own data.
from pysui.sui.sui_config import SuiConfig
from pysui.sui.sui_clients.sync_client import SuiClient
def cfg_user():
"""Config user"""
cfg = SuiConfig.user_config(
# Required
rpc_url="https://fullnode.mainnet.sui.io:443/",
# Must be a valid Sui keystring (i.e. 'key_type_flag | private_key_seed' )
prv_keys=["AIUPxQvxM18QggDDdTO0D0OD6PNVvtet50072d1grIyl"],
# Needed for subscribing
ws_url="wss://fullnode.mainnet.sui.io:443/",
)
return cfg
cfg = cfg_user()
client = SuiClient(cfg)
Import suinspy
from suinspy.client import SuiNsClient
Create an instance of SuinsClient and choose network type (mainet, testnet or devnet).
suins = SuiNsClient(client, 'mainet')
Fetch a name object:
suins.get_name_object("suins.sui")
Fetch a name object including the owner and avatar:
NOTE: show_owner and show_avatar arguments are optional.
suins.get_name_object("suins.sui", show_owner=True, show_avatar=True)
Fetch a SuiAddress linked to a name:
suins.get_address("suins.sui")
Official SuiNS Resources
Ask A Question
Join Our Community discord
Metadata
Release files for suinspy 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| suinspy-0.2.1.tar.gz | 4.1 kB | Without provenance | Details for suinspy-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| suinspy-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for suinspy-0.2.1-py3-none-any.whl |
Total release size: 8.8 kB
Release files / suinspy-0.2.1.tar.gz
| Download URL | suinspy-0.2.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7add1635d466ad501b4d212ee1a8353e9adfc5c9f369bb6526de5b413ac2cb2e
|
|
BLAKE2b-256 checksum How to use checksums |
e4258d3eaf7677f4a49e5ba5154995bb2ae1a02e3791e502b5c3bd9d37fa1844
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
|
Release files / suinspy-0.2.1-py3-none-any.whl
| Download URL | suinspy-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e417ee2fa38778ad6a206e9e2e45d2c1e238533e623b58d12af7c20884cb6d00
|
|
BLAKE2b-256 checksum How to use checksums |
e1ef091002e7c37e2da752d04e08842b8aa6be2feb99900865787a6d3c82c39a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
|
Security for suinspy 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.