Skip to main content

Utility helpers for XChain clients

Project description

xchainpy/xchainpy-util

Utitity helpers for XChain clients

Modules (in alphabetical order)

  • asset - Utilities for handling assets
  • chain - 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.8.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

xchainpy_util-0.1.8-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file xchainpy_util-0.1.8.tar.gz.

File metadata

  • Download URL: xchainpy_util-0.1.8.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.10

File hashes

Hashes for xchainpy_util-0.1.8.tar.gz
Algorithm Hash digest
SHA256 be3dc6b0e3a8716914669fa9840740965e138f340a9786fbd48e88e150668633
MD5 41c82bb88fdeea1cf1f48cd070f95689
BLAKE2b-256 411df986e65f9a25dc1191e1dfe0d9d88a99d9ba2ffdcaf48349118a2d0dd395

See more details on using hashes here.

File details

Details for the file xchainpy_util-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: xchainpy_util-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.10

File hashes

Hashes for xchainpy_util-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f984185803d665cb9b45365da1df90380e82097105820904ff16999e1fc39a59
MD5 38235d7b6f3436b147cbaf7984f580a1
BLAKE2b-256 1c9dcab49a79c09d8499b67f1d77a1c12ad8b6cca1679e41237d45517abb7832

See more details on using hashes here.

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