Utility helpers for XChain clients
Project description
xchainpy/xchainpy-util
Utitity helpers for XChain clients
Modules (in alphabetical order)
asset
- Utilities for handling assetschain
- Utilities for multi-chain
Usage
pip install xchainpy_util
Asset
from xchainpy_util.asset import Asset
asset = Asset(chain='BNB', symbol='RUNE-67C')
print(asset.chain)
print(asset.symbol)
print(asset.ticker)
asset = Asset(chain='BNB', symbol='RUNE-67C', ticker='RUNE')
print(asset)
Chain
from xchainpy_util import chain
from xchainpy_util.chain import Chain
is_chain = chain.is_chain(Chain.Binance)
print(is_chain)
is_chain = chain.is_chain('BNB')
print(is_chain)
Tests
These packages needed to run tests:
- pytest
pip install pytest
How to run tests?
$ python -m pytest xchainpy/xchainpy_util/tests
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
xchainpy_util-0.1.7.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for xchainpy_util-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f391470493feb54514c7efb108d4870d63c8c2e4970bcc4bf23e5b9a848ab02 |
|
MD5 | 7081b02bd9914babbe9a1207d0103718 |
|
BLAKE2b-256 | 064e1c2d9f5073ff0638cfb497f508281b8ca033a2d357f1a9426f6689dba792 |