This library provides easy access to Shinami APIs.
Project description
Shinami Python SDK
This package is an asynchronous API wrapper for the Shinami In-App Wallet (IAW) API.
Currently, this SDK supports the IAW methods below.
- shinami_key_createSession
- shinami_wal_createWallet
- shinami_wal_executeGaslessTransactionBlock
- shinami_wal_getWallet
How to Install
pip install shinami-python-sdk
How to Use
import asyncio
import os
from shinami_python_sdk.iaw import ShinamiIawClient
# Set Shinami API key.
SHINAMI_IAW_API_TOKEN = os.environ["SHINAMI_IAW_API_KEY"]
# Initialize IAW API client.
shinami_iaw_client = ShinamiIawClient(SHINAMI_IAW_API_KEY)
# Create a session_token.
session_token = asyncio.run(shinami_iaw_client.create_session("NOT_A_SECURE_SECRET"))
# Create a wallet.
wallet = asyncio.run(shinami_iaw_client.create_wallet("walletid123", session_token))
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 Distribution
Built Distribution
Close
Hashes for shinami_python_sdk-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf8a120553f7e919442ff0c928fc3d42c89c4daa063ee9fa257727a85576e925 |
|
MD5 | c024576a0b1a3aa8679a08c0b5749503 |
|
BLAKE2b-256 | a805b5f77b7918033dec7ccfcd1ca5c6c1a082d07be9f8013cda13938f6d7c99 |