Skip to main content

Unofficial Python library for HIVE

Project description

nectar - Unofficial Python Library for HIVE

nectar is an unofficial 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

Current build status

Support & Documentation

You may find help in the nectar-discord-channel. The discord channel can also be used to discuss things about nectar.

A complete library documentation is available at temporary

About nectar

  • High unit test coverage
  • Complete documentation of nectar-cli 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 nectar-cli 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.12.x

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 nectar-cli:

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 nectar

You can install nectar from this repository if you want the latest but possibly non-compiling version:

git clone https://github.com/thecrazygm/nectar.git
cd nectar
uv sync

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.0.2.tar.gz (705.1 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.0.2-py3-none-any.whl (408.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hive_nectar-0.0.2.tar.gz
  • Upload date:
  • Size: 705.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for hive_nectar-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0a02bdc4a4f097d8bddae438cdcc0a46c396a8ea06fa561eccc5ff4eca553a24
MD5 98f7fe2a189e8df8047d9367576c9d38
BLAKE2b-256 945fb4aa8e9889467a981d3ca394ad18a738937c3b6d709dea0da51f6611efc9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hive_nectar-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 408.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for hive_nectar-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a1f5bd52517773b1426c619d1b8e4c0d1d26b77949a736e66c0e7c35459f8b8a
MD5 aebfe0fa06e840890b7bdf51932bf8f9
BLAKE2b-256 a0519abb7fd660a8c901de37d4272e5f0c783c5305cc4e6f861ca62339b034a3

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