[Lxc-users] use lxc in python,manage lxc

宣铭艺 xuanmingyi at gmail.com
Mon Oct 15 09:03:46 UTC 2012


2012/10/15 Stéphane Graber <stgraber at ubuntu.com>

> On 10/15/2012 04:19 AM, 宣铭艺 wrote:
> > can we use lxc with python2
> > I find a lxc binding for python3
> >
> > http://www.stgraber.org/2012/09/28/introducing-the-python-lxc-api/
> >
> > But I used python2.
> >
> > And Do we have a software which can manage lxc-containers such as
> > create,destroy,start,modify containers.But not command with shell .
> > Thanks.
>
> The bindings are for python3 only and I don't intend to support python2
> as it'd mean twice the amount of implementation time and testing + a
> nightmare for unicode handling.
>
> python3 has now been around for a long time and should be the preferred
> python version for any new development.
>
>
> There are a few scripts already using python3-lxc to manage containers,
> Jonathan Carter has one on his github:
> https://github.com/highvoltage/llxc
>
> > --
> > 樱宝宝: http://www.xuanmingyi.com
>
>
> --
> Stéphane Graber
> Ubuntu developer
> http://www.ubuntu.com
>
>

Thank you for your lib and your advice about python3.
I'm so sad that you won't support python2 :(
Now I will use python2 and python3 in different projects at the same time !
OMG

-- 
樱宝宝: http://www.xuanmingyi.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20121015/e344e1d8/attachment.html>


More information about the lxc-users mailing list