Skip to main content

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


Download files

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

Source Distribution

shinami_python_sdk-0.2.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

shinami_python_sdk-0.2.0-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

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