Log in

View Full Version : pynetworktables NT3 rewrite now available for testing


virtuald
28-10-2016, 00:40
pynetworktables has been rewritten in the style of ntcore, and now fully supports all of the NT3 features that are available in ntcore. For the most part.... it should all work. There are a few breaking changes I can think of:


Connection listeners are different. Sorry.
The special array types are gone (yay) and so is the networktables2 package
It's easier to make client connections (though the old way still works)
... and that's about it


I haven't had the opportunity to try this on a real robot yet, BUT the unit tests have 75% coverage and it works on my machine, so it's probably good to go if you're using this on a driver station or coprocessor. Try it out, let me know how it works!

Installation is super easy if you already have python and pip installed:


pip install --pre pynetworktables


Also, if you're using pynetworktables2js, there's an alpha release of that available too, which accommodates some of the NT3 changes. However, more work needs to be done to fully support all of the NT3 features in pynetworktables2js.

andrewda
28-10-2016, 01:46
Awesome! I'll be sure to test out the newest version when I get a chance.

RyanN
28-10-2016, 08:31
Working on updating my application right now. Thanks for the hard work! We should pay you more! :)

TimTheGreat
28-10-2016, 10:49
We should pay you FTFY

RyanN
28-10-2016, 12:22
It was an easy enough update my code, and the feature I wanted works. Great work!