hive-nectar v0.1.3 - The "green" edition

Hey everyone,

I know it's only been a couple of days since the big v0.1.0 release of hive-nectar (and the two emergency patches that followed), but I couldn't leave well enough alone. Today, I'm happy to announce the release of version 0.1.3.

The main driver for this update was my personal obsession / OCD: I couldn't stop until the entire test suite was passing.

passing_1.png

The Road to 100% Green

Getting a large, legacy codebase to a state where all tests pass without error is always a journey. The process uncovered a number of subtle bugs and areas that needed modernization. This effort resulted in a more stable and reliable library for everyone. A few of the key fixes include:

  • Beneficiary Parsing: The function for parsing post beneficiaries was completely rewritten to correctly handle complex inputs, merge duplicate accounts, and properly distribute remaining percentages.
  • API Call Resilience: Calls to the bridge API for fetching post lists now correctly respect the API's page size limits, preventing errors when requesting more than 20 posts at a time. Other calls were also updated to gracefully handle empty responses from the server.
  • Connection Logic: The is_connected() method was improved to more accurately reflect the connection state, preventing downstream errors that would occur when an RPC node was instantiated but not yet fully connected.

New Feature: HAF Integration

On top of the bug fixes, I've also added some rudimentary support for Hive Application Framework (HAF) endpoints. A new nectar.haf module has been added to the library to make these queries simple.

The first practical application of this is in fetching an account's reputation. When you now call Account("username").reputation(), the library will first attempt to get the most up-to-date reputation score directly from a HAF endpoint. If that fails, it gracefully falls back to the cached reputation value stored on the account object (25).

This release is another big step forward in modernizing hive-nectar, and I'm thrilled with the progress. The new version is now live on PyPI.

release_013.png

GitHub: https://github.com/TheCrazyGM/hive-nectar
DeepWiki: https://deepwiki.com/TheCrazyGM/hive-nectar
ReadTheDocs: https://hive-nectar.readthedocs.io

As always,
Michael Garcia a.k.a. TheCrazyGM

0.20717394 BEE
1 comments

Your attention to detail is very welcome indeed, my friend, and congratulations on this notably-improved version. It's getting better and better! 😁🙏💚✨🤙

0.00022098 BEE