Skip to main content

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

Official SuiNS Website

Official SuiNS Discord

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)

Source distribution for suinspy 0.2.1
File Size Uploaded
suinspy-0.2.1.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for suinspy 0.2.1
File Interpreter ABI Platform
suinspy-0.2.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page