Lighthive update v0.4.3

Words
142
Reading
1 min
Listen
Play
3y


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..

Lighthive update v0.4.3 | Ecency