So here is a quick sample of my progress playing around with launchpadlib using lp-shell from lptools:
There is not much yet, but it's a start. python3 port of launchpadlib is coming soon. It has been attempted a few times before and I am leveraging that work. Porting this stack has proven to be the most difficult python3 port I have ever done. But there is always python-libvirt that still needs porting ;-)
Some of above is just merge proposals against launchpadlib & lazr.restfulclient, and requires not yet packaged modules in the archive. When trying it out, I'm still getting a lot of run-time asserts and things that haven't been picked up by e.g. pyflakes3 and has not been unit-tested yet.
In [1]: lp Out[1]: <launchpadlib.launchpad.Launchpad at 0x7f49ecc649b0> In [2]: lp.distributions Out[2]: <launchpadlib.launchpad.DistributionSet at 0x7f49ddf0e630> In [3]: lp.distributions['ubuntu'] Out[3]: <distribution at https://api.launchpad.net/1.0/ubuntu> In [4]: lp.distributions['ubuntu'].display_name Out[4]: 'Ubuntu' In [5]: lp.distributions['ubuntu'].summary Out[5]: 'Ubuntu is a complete Linux-based operating system, freely available with both community and professional support.' In [7]: import sys; print(sys.version) 3.4.1 (default, Jun 9 2014, 17:34:49) [GCC 4.8.3]
There is not much yet, but it's a start. python3 port of launchpadlib is coming soon. It has been attempted a few times before and I am leveraging that work. Porting this stack has proven to be the most difficult python3 port I have ever done. But there is always python-libvirt that still needs porting ;-)
Some of above is just merge proposals against launchpadlib & lazr.restfulclient, and requires not yet packaged modules in the archive. When trying it out, I'm still getting a lot of run-time asserts and things that haven't been picked up by e.g. pyflakes3 and has not been unit-tested yet.
Comments
Post a Comment