Skip to main content

Wallet service API SDK

Project description

Wallet Python SDK

Python interface for a wallet service.x

Table Of Contents


Wallet service Python 3 SDK.

Install the wallet-sdk pip package. Then use the WalletClient class.

import wallet_sdk

import sys

# Initialize the client
c = wallet_sdk.WalletClient.LoadFromConfig("./your-authority-client-config.json")

# Ensure wallet service is operational
except wallet_sdk.WalletAPIError as e:
    print("Failed to ensure wallet service is running:", e)

# Add 10 to user 0's wallet
entry = c.create_entry(user_id='0', amount=10, reason='testing')
print(entry) # {'authority_id': '<your authority id>', 'user_id': '0', 'created_on': 1596869670.124, 'amount': 10, 'reason': 'testing'}

# Get the value of all wallets
wallets = c.get_wallets()
print(wallets) # [{'id': '0', 'total': 10}]


A virtual environment is provided for development purposes.

Install Pipenv, the official Python virtual environment manager.

Then install dependencies:

pipenv install

Finally activate the environment:

pipenv shell


This section documents how the wallet-sdk pip package is generated.

First activate the development python virtual environment:

pipenv shell

Edit the version in wallet_sdk/VERSION.

Publish to pip:

make publish PIP_REPO=pypi

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

wallet-sdk-Noah-Huppert-0.1.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

wallet_sdk_Noah_Huppert-0.1.0-py3-none-any.whl (7.7 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