Nibiru Python SDK
Project description
Nibiru Python SDK
Dependencies
Ubuntu
sudo apt install python3.X-dev autoconf automake build-essential libffi-dev libtool pkg-config
Fedora
sudo dnf install python3-devel autoconf automake gcc gcc-c++ libffi-devel libtool make pkgconfig
macOS
brew install autoconf automake libtool
Quick Start
Installation
pip install nibiru-py
Usage
Requires Python 3.7+
$ pipenv shell
$ pipenv install
# connecting to Nibiru Exchange API and create a new pool
$ python examples/chain_client/dex/create_pool.py
# sending a msg with bank transfer signs and posts a transaction to the Nibiru Chain
$ python examples/chain_client/msg_send.py
Upgrade pip
to the latest version, if you see these warnings:
WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
WARNING: Additional context: user = True home = None root = None prefix = None
Development
- Enable dev env
pipenv shell
pipenv install --dev
- Generate proto binding & build
make proto-gen
python -m build
- Install pkg
# from local build
pip uninstall nibiru-py
pip install nibiru-py --no-index --find-links /path/to/nibiru/sdk-python/dist
# from pypi
pip uninstall nibiru-py
pip install nibiru-py
Linting
Enable git hook which will perform linting before each commit:
pre-commit install
This will keep your code clean.
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
nibiru-py-0.0.5.tar.gz
(172.1 kB
view hashes)
Built Distribution
nibiru_py-0.0.5-py3-none-any.whl
(303.9 kB
view hashes)
Close
Hashes for nibiru_py-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23f56a0c131a578d9fbd6a8a3ff5220e5b0a4a740a09e601d5501e998d95699b |
|
MD5 | d62caa594ca649bcf935022e54641fa4 |
|
BLAKE2b-256 | 3d333abb2e86a4e86f6f2334d29c45a29ae6817e2ac88b3ed4019293693b3989 |