Nectarengine v0.2.0 release candidate

Hey everyone,

Following the hive-nectar update, I am also releasing a nectarengine v0.2.0 branch.

Tokens Script running v0.2.0!

I modernized the codebase to use httpx instead of requests and ran strict type checks (ty is brutal) until I cleared every error. Like hive-nectar, this is a work in progress. I will merge it to main in about a week unless I get some issues that need fixed.

Recent Changes

0.2.1

  • Fixed type hinting errors in cli.py, nfts.py, and tokenobject.py.
  • Added defensive None checks for nft.get_id() in CLI to prevent runtime errors.
  • Cleaned up unused variables and imports identified by ruff and ty.

0.2.0

  • Migrated network layer from requests to httpx for better performance.
  • Enhanced find_all pagination to use last_id based recursion.
  • Silenced noisy httpx logs by default.

Shoutout

Special thanks to @themarkymark. His personal hiveenginepy inspired the last_id pagination logic, which handles tokens with more than 10k items.

Installation

Test it via pip or uv:

pip install -U git+https://github.com/thecrazygm/nectarengine@v0.2.0
# or
uv add "nectarengine @ git+https://github.com/thecrazygm/[email protected]"

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

Sort:  

This is great work! Keep up the positive energy my friend!

!PIMP
!PAKX
!PIZZA

View or trade PAKX tokens.

@ecoinstant, PAKX has voted the post by @thecrazygm. (1/2 calls)

Use !PAKX command if you hold enough balance to call for a @pakx vote on worthy posts! More details available on PAKX Blog.

PIZZA!

$PIZZA slices delivered:
@ecoinstant(1/20) tipped @thecrazygm

Please vote for pizza.witness!

Excellent! So this is the complete rewrite of NectarEngine, to go along with the Hive-Nectar rewrite? 😁🙏💚✨🤙

More like a complete audit, a lot of them both stayed the same, but I did go through every single line and fix issues.

Ah, OK, I see the difference, and your thoroughness is much appreciated. 😁🙏💚✨🤙