Emre avatar

Lighthive update v0.4.3

emrebeyler

Published: 16 Jan 2024 › Updated: 16 Jan 2024Lighthive update v0.4.3

Lighthive update v0.4.3


Lighthive documentation


A new version of Lighthive is pushed to the Python package index with the tag 0.4.3 . As usual, pip install lighthive --upgrade is enough to get the latest version.

Changelog


  • Use random integer instead of random UUIDs for the id field in the JSONRPC request body. Even though specs allow strings this is a convention that have been followed in other libraries, and recently Drone is released to the wild and it expects IDs as integers.

  • Use == instead of is keywords at transaction builder class. This was harmless in practice but it was creating some mess in logs.

Credits to brianoflondon@brianoflondon for raising those issues.

Bonus


You can actually pass IDs as a library user. E.g:

from lighthive.client import Client

c = Client(nodes=["https://techcoderx.com"])

resp = c.get_dynamic_global_properties(id="whateveryouwant")
print(resp)

Not very useful for most of the apps, since ligthive is not async. But who knows, just in case, if you find a use case for it..

Leave Lighthive update v0.4.3 to:

Written by

Software Guy. Witness.

Read more #hive-139531 posts


Best Posts From Emre

We have not curated any of emrebeyler's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Emre