Python SDK for Justice Augment
Project description
Justice Augment Python SDK
Python SDK for Justice Augment Project.
Development Setup
Set these local environment variables:
IAM_CLIENT_ID
- IAM client idIAM_CLIENT_SECRET
- IAM client secretADMIN_USERNAME
- (optional) user/admin usernameADMIN_PASSWORD
- (optional) user/admin password
Then run:
$ make build
It will create a docker image with env variables interpolated in tox.ini
file for testing.
To test it, run this command:
$ make test
After that, you can cleanup the working directory with this command:
$ make clean
How to use
To use this SDK you can install it from pip with this command:
$ pip install justice-augment-python-sdk
Alternatively, you can add justice-augment-python-sdk
as dependency in requirements.txt
.
Then you install it with this command:
$ pip install -r requirements.txt
After that you can import the package, and use it like this:
import os
from justice import Justice
endpoint = "https://demo.accelbyte.io"
namespace = 'accelbyte'
core = Justice(namespace, endpoint)
wallet_id = 'some-wallet-string-id'
resp = core.wallet.get_wallet(wallet_id)
my_wallet = resp.json()
print("Wallet balance: {0} {1}".format(my_wallet['balance'], my_wallet['currencyCode']))
Do not forget to set IAM_CLIENT_ID
and IAM_CLIENT_SECRET
in your local environment variables if you want to try it in your local machine.
Commit Message Guidelines
We use https://www.conventionalcommits.org/ as a guidelines to write commit message. You use this format to write your commit message:
<type>(optional scope): <description>
<BLANK LINE>
<optional-body>
<BLANK LINE>
<optional-footer>
Any line of the commit message cannot be longer than 100 characters!
Samples:
docs(changelog): update changelog to beta.5
fix(login): add the missing username field
We made login system without username field in our Database!
Type
Must be one of the following:
- build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
- ci: Changes to our CI configuration files and scripts (example scopes: Circle, BrowserStack, SauceLabs)
- docs: Documentation only changes
- feat: A new feature
- fix: A bug fix
- perf: A code change that improves performance
- refactor: A code change that neither fixes a bug nor adds a feature
- test: Adding missing tests or correcting existing tests
- chore: Repository maintenance
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
Hashes for justice-augment-python-sdk-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c103d959614c692550145d0020500e31c2f99bc744d135a1f263a2b928b606c0 |
|
MD5 | eabb7dc1a0e10cc3ef4ac4c21784ae5b |
|
BLAKE2b-256 | cfa5f947f88e0d0cf88af031c30fea28e0e2f133afb2b09921a8fb25bd9f60da |
Hashes for justice_augment_python_sdk-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c995f576212cd77c613c56a1923890eefbfde3906fb82c13e462994c040300c2 |
|
MD5 | cc4b729dc7c4f29d7333b3d2b2eb0917 |
|
BLAKE2b-256 | f14fa0bcc4471b6459526267b37f04cf82b3b3a71e19526c0f8de08dfdd6a41d |