Hive Blockchain Python Library
Project description
nectar - Python Library for HIVE
nectar is a python library for HIVE, which is created from the remains of beem which was derived from python-bitshares The library name is derived from a nectar of a flower.
nectar includes python-graphenelib.
Current build status
Support & Documentation
You may find help in the nectar-discord. The discord channel can also be used to discuss things about nectar.
A complete library documentation is available at ReadTheDocs
RPC surface
- Single appbase JSON-RPC path: all calls use the
api.methodshape with defaults from the staticsrc/nectarapi/openapi.pymap (no condenser/appbase flag or bundled JSON specs). - Transport: pooled
httpxclient with retry/backoff handled by the RPC layer and shared across the module-levelshared_blockchain_instance()helper. - Shared instance: constructing
Hive(...)will reuse the shared transport once initialized;set_shared_blockchain_instance/shared_blockchain_instanceexpose a singleton when you want one process-wide instance.
About hive-nectar
- Highly opinionated fork of beem
- High unit test coverage
- Complete documentation of hive-nectar and all classes including all functions
- hivesigner integration
- Works on read-only systems
- Own BlockchainObject class with cache
- Contains all broadcast operations
- Estimation of virtual account operation index from date or block number
- the command line tool hive-nectar uses click and has more commands
- NodeRPC can be used to execute even not implemented RPC-Calls
- More complete implemention
Installation
The minimal working Python version is >=3.10
nectar can be installed parallel to beem.
For Debian and Ubuntu, please ensure that the following packages are installed:
sudo apt-get install build-essential libssl-dev python3-dev python3-pip python3-setuptools
The following package speeds up hive-nectar:
sudo apt-get install python3-gmpy2
For Fedora and RHEL-derivatives, please ensure that the following packages are installed:
sudo yum install gcc openssl-devel python-devel
For OSX, please do the following:
brew install openssl
export CFLAGS="-I$(brew --prefix openssl)/include $CFLAGS"
export LDFLAGS="-L$(brew --prefix openssl)/lib $LDFLAGS"
For Termux on Android, please install the following packages:
pkg install clang openssl python
Signing and Verify can be fasten (200 %) by installing cryptography (you may need to replace pip3 by pip):
pip3 install -U cryptography
or (you may need to replace pip3 by pip):
pip3 install -U secp256k1prp
Install or update nectar by pip(you may need to replace pip3 by pip):
pip3 install -U hive-nectar
You can install nectar from this repository if you want the latest but possibly non-compiling version:
git clone https://github.com/thecrazygm/hive-nectar.git
cd hive-nectar
uv sync
uv sync --dev
Run tests after install:
pytest
Ledger support
For Ledger (Nano S) signing, the following package must be installed:
pip3 install ledgerblue
Changelog
Can be found in CHANGELOG.md.
License
This library is licensed under the MIT License.
Acknowledgements
beem was created by Holger Nahrstaedt python-bitshares and python-graphenelib were created by Fabian Schuh (xeroc).
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hive_nectar-0.2.11.tar.gz.
File metadata
- Download URL: hive_nectar-0.2.11.tar.gz
- Upload date:
- Size: 743.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":null,"id":"forky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
590b889f0f3dd773335ea138bb476274f0c93a1a05e0f9dbe9418a17ef3f147c
|
|
| MD5 |
25d1acf0490e51a131b0fdd806ff0822
|
|
| BLAKE2b-256 |
4031fa7ea683fb06558286de73f0832ff3929c38c5ccf9ba36abc98cff25e01b
|
File details
Details for the file hive_nectar-0.2.11-py3-none-any.whl.
File metadata
- Download URL: hive_nectar-0.2.11-py3-none-any.whl
- Upload date:
- Size: 457.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":null,"id":"forky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adba007cfbdbdfa02e9a461ba166af8c1401a726e25c015c1a8e4b3e68284a5d
|
|
| MD5 |
0600c728bab4fca6c31f2b80ba239426
|
|
| BLAKE2b-256 |
0057acf5d5295e9c2903244da4847b0c5b9b174a8f121200e0eab06bc4f25ece
|