Skip to main content

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.

Latest Version

Python Versions

Ask DeepWiki

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hive_nectar-0.1.5.tar.gz (727.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hive_nectar-0.1.5-py3-none-any.whl (459.1 kB view details)

Uploaded Python 3

File details

Details for the file hive_nectar-0.1.5.tar.gz.

File metadata

  • Download URL: hive_nectar-0.1.5.tar.gz
  • Upload date:
  • Size: 727.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for hive_nectar-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6d5f38945161101a4a223561d76803d8077b15d0d29e64a58d2acbfbb9279fad
MD5 91eb1d3a05a75798d4f246c99b61e4fa
BLAKE2b-256 9cb89e1b455a4658cc63570c2e32666d383b3fa0a9c9db9549e9712caec13d9a

See more details on using hashes here.

File details

Details for the file hive_nectar-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for hive_nectar-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aeaf5160207d4b376f404ef760bf93c3e7986ba7df1defaf88f6647ecb4edf4c
MD5 2d5fed61f54ab3546b1dd6462b5d4387
BLAKE2b-256 7bfe9c20b6a8f0e6f44c0a33100981c2d74de7db30c229b84d2742b07d93a59e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page