From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6574-1427270126-92759@sneakemail.com> Date: Wed, 25 Mar 2015 00:55:28 -0700 From: 6o205zd02@sneakemail.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: 9fans@9fans.net Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [9fans] Any examples of using the py9p client code? Topicbox-Message-UUID: 4aca8b78-ead9-11e9-9d60-3106f5b1d025 Can anyone point me at an example of using the py9p (http://mirtchovski.com/p9/py9p/ or https://pypi.python.org/pypi/py9p/1.0.8) client code to talk to a server. I've been playing around with a little bit, but haven't had any luck. More specifically, I would like to use it to write a client that talks to P9P acme. Is that even possible? If not is there some other python library that would help? thanks, Peter Canning From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <6574-1427270126-92759@sneakemail.com> In-Reply-To: <6574-1427270126-92759@sneakemail.com> From: Skip Tavakkolian Date: Wed, 25 Mar 2015 08:01:41 +0000 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a1134a61648463a0512184ff6 Subject: Re: [9fans] Any examples of using the py9p client code? Topicbox-Message-UUID: 4acec602-ead9-11e9-9d60-3106f5b1d025 --001a1134a61648463a0512184ff6 Content-Type: text/plain; charset=UTF-8 it is easy using Go https://github.com/9fans/go On Wed, Mar 25, 2015 at 12:55 AM <6o205zd02@sneakemail.com> wrote: > Can anyone point me at an example of using the py9p > (http://mirtchovski.com/p9/py9p/ or > https://pypi.python.org/pypi/py9p/1.0.8) client code to talk to a > server. I've been playing around with a little bit, but haven't had any > luck. > > More specifically, I would like to use it to write a client that talks > to P9P acme. Is that even possible? If not is there some other python > library that would help? > > thanks, > Peter Canning > > > --001a1134a61648463a0512184ff6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
it is easy using Go

https://github.com/9fans/go


On Wed, Mar 25, 2015 at 12:55 AM <6o205zd02@sneakemail.com> wrot= e:
Can anyone point me at an example of u= sing the py9p
(http://mirtc= hovski.com/p9/py9p/ or
https= ://pypi.python.org/pypi/py9p/1.0.8) client code to talk to a
server.=C2=A0 I've been playing around with a little bit, but haven'= ;t had any
luck.

More specifically, I would like to use it to write a client that talks
to P9P acme.=C2=A0 Is that even possible?=C2=A0 If not is there some other = python
library that would help?

=C2=A0 =C2=A0 =C2=A0thanks,
=C2=A0 =C2=A0 =C2=A0Peter Canning


--001a1134a61648463a0512184ff6-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <6574-1427270126-92759@sneakemail.com> Date: Wed, 25 Mar 2015 11:12:23 +0100 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a1140dcf2a32c1905121a22f8 Subject: Re: [9fans] Any examples of using the py9p client code? Topicbox-Message-UUID: 4ad7925a-ead9-11e9-9d60-3106f5b1d025 --001a1140dcf2a32c1905121a22f8 Content-Type: text/plain; charset=UTF-8 that doesn't help much if you want to use python though :) How far did you get Peter? Did you get past the auth stage? Have you looked into examples/cl.py ? py9p.Client class should do most of the heavylifting for you. bence 2015-03-25 9:01 GMT+01:00 Skip Tavakkolian : > it is easy using Go > > https://github.com/9fans/go > > > On Wed, Mar 25, 2015 at 12:55 AM <6o205zd02@sneakemail.com> wrote: > >> Can anyone point me at an example of using the py9p >> (http://mirtchovski.com/p9/py9p/ or >> https://pypi.python.org/pypi/py9p/1.0.8) client code to talk to a >> server. I've been playing around with a little bit, but haven't had any >> luck. >> >> More specifically, I would like to use it to write a client that talks >> to P9P acme. Is that even possible? If not is there some other python >> library that would help? >> >> thanks, >> Peter Canning >> >> >> --001a1140dcf2a32c1905121a22f8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
that doesn't help much if you want to use python thoug= h :)

How far did you get Peter? Did you get past the aut= h stage?
Have you looked into examples/cl.py ?
py9p.Client cla= ss should do most of the heavylifting for you.

ben= ce

201= 5-03-25 9:01 GMT+01:00 Skip Tavakkolian <skip.tavakkolian@gmail.c= om>:
it is= easy using Go


<= div class=3D"HOEnZb">

On We= d, Mar 25, 2015 at 12:55 AM <6o205zd02@sneakemail.com> wrote:
Can anyone point me at an example of using the py9p
(http://mirtc= hovski.com/p9/py9p/ or
https= ://pypi.python.org/pypi/py9p/1.0.8) client code to talk to a
server.=C2=A0 I've been playing around with a little bit, but haven'= ;t had any
luck.

More specifically, I would like to use it to write a client that talks
to P9P acme.=C2=A0 Is that even possible?=C2=A0 If not is there some other = python
library that would help?

=C2=A0 =C2=A0 =C2=A0thanks,
=C2=A0 =C2=A0 =C2=A0Peter Canning



--001a1140dcf2a32c1905121a22f8-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <6574-1427270126-92759@sneakemail.com> In-Reply-To: From: Skip Tavakkolian Date: Wed, 25 Mar 2015 16:24:06 +0000 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a1134a6160be9e505121f54fb Subject: Re: [9fans] Any examples of using the py9p client code? Topicbox-Message-UUID: 4aef648e-ead9-11e9-9d60-3106f5b1d025 --001a1134a6160be9e505121f54fb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable he asked "Is that even possible?", hence my suggestion. On Wed, Mar 25, 2015 at 3:12 AM Bence F=C3=A1bi=C3=A1n w= rote: > that doesn't help much if you want to use python though :) > > How far did you get Peter? Did you get past the auth stage? > Have you looked into examples/cl.py ? > py9p.Client class should do most of the heavylifting for you. > > bence > > 2015-03-25 9:01 GMT+01:00 Skip Tavakkolian : > >> it is easy using Go >> >> https://github.com/9fans/go >> >> >> On Wed, Mar 25, 2015 at 12:55 AM <6o205zd02@sneakemail.com> wrote: >> >>> Can anyone point me at an example of using the py9p >>> (http://mirtchovski.com/p9/py9p/ or >>> https://pypi.python.org/pypi/py9p/1.0.8) client code to talk to a >>> server. I've been playing around with a little bit, but haven't had an= y >>> luck. >>> >>> More specifically, I would like to use it to write a client that talks >>> to P9P acme. Is that even possible? If not is there some other python >>> library that would help? >>> >>> thanks, >>> Peter Canning >>> >>> >>> > --001a1134a6160be9e505121f54fb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
he asked "Is that even possible?", hence my sugg= estion.

On Wed, Mar 25, 2015 at 3:1= 2 AM Bence F=C3=A1bi=C3=A1n <begnoc@= gmail.com> wrote:
that doesn't help much if you want to use python though :)

How far did you get Peter? Did you get past the auth stage?
Have= you looked into examples/cl.py ?
py9p.Client class should do mos= t of the heavylifting for you.

<= div>bence

2015-03-25 9:01 GMT+01:00 Skip Tavakkolian <skip.tavakkolian@= gmail.com>:
it is easy using Go



On Wed, Mar 25, 2015 at 12:55 = AM <6o205z= d02@sneakemail.com> wrote:
Can any= one point me at an example of using the py9p
(http://mirtc= hovski.com/p9/py9p/ or
https= ://pypi.python.org/pypi/py9p/1.0.8) client code to talk to a
server.=C2=A0 I've been playing around with a little bit, but haven'= ;t had any
luck.

More specifically, I would like to use it to write a client that talks
to P9P acme.=C2=A0 Is that even possible?=C2=A0 If not is there some other = python
library that would help?

=C2=A0 =C2=A0 =C2=A0thanks,
=C2=A0 =C2=A0 =C2=A0Peter Canning



--001a1134a6160be9e505121f54fb-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <32495-1427354924-796552@sneakemail.com> Date: Thu, 26 Mar 2015 00:28:40 -0700 From: 6o205zd02@sneakemail.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: 9fans@9fans.net References: <6574-1427270126-92759@sneakemail.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------020806020706080402010608" Subject: Re: [9fans] Any examples of using the py9p client code? Topicbox-Message-UUID: 4af875e2-ead9-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --------------020806020706080402010608 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit I hadn't gotten anywhere, as I was having trouble figuring out how to even get started. The py9p.Client class expects an fd and credentials, but its documentation is nonexistent, so I was a bit mystified about what fd and credentials I was supposed to pass in. I had taken a quick look at cl.py, and it was creating a AF_INET socket, but P9P acme doesn't listen on an AF_INET socket. Based on the replies, I took a look at the go code, a closer look at pyp9.Client and cl.py and did a little experimenting and discovered I just needed to create an AF_UNIX socket for /tmp/ns.$USER.$DISPLAY/acme and a 'trivial' py9p.Credentials object, and I've successfully called Client.stat and Client.ls, so I should be able to try doing something "real" now. Skip and Bence, thanks for the hints. I just needed a little nudge to get me past my mental block. - Peter Canning --------------020806020706080402010608 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I hadn't gotten anywhere, as I was having trouble figuring out how to even get started.=C2=A0 The py9p.Client class expects an fd and credentials, but its documentation is nonexistent, so I was a bit mystified about what fd and credentials I was supposed to pass in.=C2= =A0 I had taken a quick look at cl.py, and it was creating a AF_INET socket, but P9P acme doesn't listen on an AF_INET socket.

Based on the replies, I took a look at the go code, a closer look at pyp9.Client and cl.py and did a little experimenting and discovered I just needed to create an AF_UNIX socket for /= tmp/ns.$USER.$DISPLAY/acme and a 'trivial' py9p.Credentials object, and I've successfully called Client.stat and Client.ls, so I should be able to try doing something "real" now.

Skip and Bence, thanks for the hints.=C2=A0 I just needed a little nudge to get me past my mental block.

=C2=A0=C2=A0=C2=A0 - Peter Canning

--------------020806020706080402010608-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <32495-1427354924-796552@sneakemail.com> References: <6574-1427270126-92759@sneakemail.com> <32495-1427354924-796552@sneakemail.com> Date: Thu, 26 Mar 2015 08:54:43 +0100 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] Any examples of using the py9p client code? Topicbox-Message-UUID: 4afc7a7a-ead9-11e9-9d60-3106f5b1d025 Glad we could help :) 2015-03-26 8:28 GMT+01:00, 6o205zd02@sneakemail.com <6o205zd02@sneakemail.com>: > I hadn't gotten anywhere, as I was having trouble figuring out how to > even get started. The py9p.Client class expects an fd and credentials, > but its documentation is nonexistent, so I was a bit mystified about > what fd and credentials I was supposed to pass in. I had taken a quick > look at cl.py, and it was creating a AF_INET socket, but P9P acme > doesn't listen on an AF_INET socket. > > Based on the replies, I took a look at the go code, a closer look at > pyp9.Client and cl.py and did a little experimenting and discovered I > just needed to create an AF_UNIX socket for /tmp/ns.$USER.$DISPLAY/acme > and a 'trivial' py9p.Credentials object, and I've successfully called > Client.stat and Client.ls, so I should be able to try doing something > "real" now. > > Skip and Bence, thanks for the hints. I just needed a little nudge to > get me past my mental block. > > - Peter Canning > >