Playing with Wax - UV Version

in #dev5 days ago (edited)

Not everyone uses poetry, so I took it upon myself to setup a wax example repo using UV (my prefered dependency management tool)

Using UV to manage wax

And after fighting with it for about an hour and reading the wax pyproject.toml from the official repo, I managed to set one up. So, for those of you looking to try to use wax as an alternative to hive-nectar. I urge you to give it a shot, either with the official instructions or my uv repo.

tx success

I will admit it's fascinating how it works, on such a low level, calling the hived code functions directly through a C library written for python.

the stderr.log, anyone that's run a node recognizes this

The original repo is here: https://gitlab.syncad.com/hive/wax
My uv example repo is here: https://github.com/TheCrazyGM/wax-utilities

Tell me your thoughts? Moving on to wax? Staying with what you use already? Use a different language altogether? I'm genuinely curious.

F.Y.I. This is not me backing away from hive-nectar, It's me doing what I do anyway. :D

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

Sort:  

UV is cool and useful. I found it when reviewing your code. And started using it for my own Python projects. It seems much faster than the default pip.

UV sync is easier to remember, too.

Well, when debian started making it where they had to obey the PEP668 where you couldn't install pip in the system level without risking breaking your system. I looked into the alternatives for venv. I started with pipx, which is great as well, for cli apps you need installed, but you can run anything with uv/uvx without needing to install it either. uv tool run glances or uvx glances is great in a pinch when you don't want to worry about installing the python app or only need to run it once. I can't praise it enough honestly.

And I do believe they have done the maths, it is like 100x faster than pip or poetry et al.

The good old days of pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv are now obsolete by the simple package written with Rust lol.

Good writeup. In my opinion, there is a heavy need for backward compatibility and server side rendering for wax. But this is good development by @blocktrades team.

untitled.gif

Congratulations @thecrazygm! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You distributed more than 30000 upvotes.
Your next target is to reach 31000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out our last posts:

Hive Power Up Day - April 1st 2025