Re: http gateway, was Re: Something interesting for 4.33
"Vernon D. Cole" <[email protected]> Thu, 29 Jan 2015 12:04:24 -0700
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <CAH-ZgAcG3TbP=mUpChw4PAmtqr=sChK9iz4Rh-xAnQq0VQGumg@mail.gmail.com> |
--===============6264551106283652790== Content-Type: multipart/alternative; boundary=001a11c2e98839b3f6050dcf2994 --001a11c2e98839b3f6050dcf2994 Content-Type: text/plain; charset=UTF-8 It would be more correct to say that YAML is a superset of JSON. That is: a YAML parser will correctly interpret a JSON message (except for a few weird edge cases) and it can also use a white-space-delimited syntax which is much more human readable than JSON. On Thu, Jan 29, 2015 at 11:51 AM, Kenneth Martin <martin-TxPoQvD3IN4C6LszWs/[email protected]> wrote: > Irmen, have you tried using yaml on json serialized messages? I believe > it is a superset of json and they should be compatible. I am using it > for transferring objects over pyro fairly successfully. > -Ken > > On 15-01-28 05:46 PM, Irmen de Jong wrote: > > On 27-1-2015 3:48, Irmen de Jong wrote: > >> Something interesting coming in 4.33; > >> > https://github.com/irmen/Pyro4/commit/126097bca8ef8c05d4ca51aaf4a7d19859f47031 > >> > >> The file is named httpgateway.py and leverages Pyro's json serializer. > > The http gateway is coming along nicely. > > > > The fact that Pyro already can talk json by means of a simple serializer > switch, makes > > the work the gateway has to do actually very simple. Almost all it does > is convert a > > http rest call to the appropriate Pyro call and return the resulting > json verbatim. > > > > You can have a glimpse of it here: http://i.imgur.com/705WUoF.png > > or just grab the git master and toy with it yourself :) > > > > Won't be long till 4.33 I guess... > > > > > > Irmen > > > > > > > ------------------------------------------------------------------------------ > > Dive into the World of Parallel Programming. The Go Parallel Website, > > sponsored by Intel and developed in partnership with Slashdot Media, is > your > > hub for all things parallel software development, from weekly thought > > leadership blogs to news, videos, case studies, tutorials and more. Take > a > > look and join the conversation now. http://goparallel.sourceforge.net/ > > _______________________________________________ > > Pyro-core mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/pyro-core > > -- > Kenneth Martin, President > Granite SemiCom Inc. > 555 Richmond St. W, BX1200/Suite 905 > Toronto ON > 416 640-2626, www.granitesemi.com > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Pyro-core mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pyro-core > --001a11c2e98839b3f6050dcf2994 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>It would be more correct to say that YAML is a supers= et of JSON.=C2=A0 That is: a YAML parser will correctly interpret a JSON me= ssage (except for a few weird edge cases) and it can also use a white-space= -delimited syntax which is much more human readable than JSON.<br></div><br= ><br></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Thu= , Jan 29, 2015 at 11:51 AM, Kenneth Martin <span dir=3D"ltr"><<a href=3D= "mailto:martin-TxPoQvD3IN4C6LszWs/[email protected]" target=3D"_blank">martin-TxPoQvD3IN4C6LszWs/[email protected]</a= >></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 = 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Irmen, have you tried= using yaml on json serialized messages? I believe<br> it is a superset of json and they should be compatible. I am using it<br> for transferring objects over pyro fairly successfully.<br> -Ken<br> <br> On 15-01-28 05:46 PM, Irmen de Jong wrote:<br> > On 27-1-2015 3:48, Irmen de Jong wrote:<br> >> Something interesting coming in 4.33;<br> >> <a href=3D"https://github.com/irmen/Pyro4/commit/126097bca8ef8c05d= 4ca51aaf4a7d19859f47031" target=3D"_blank">https://github.com/irmen/Pyro4/c= ommit/126097bca8ef8c05d4ca51aaf4a7d19859f47031</a><br> >><br> >> The file is named httpgateway.py and leverages Pyro's json ser= ializer.<br> > The http gateway is coming along nicely.<br> ><br> > The fact that Pyro already can talk json by means of a simple serializ= er switch, makes<br> > the work the gateway has to do actually very simple. Almost all it doe= s is convert a<br> > http rest call to the appropriate Pyro call and return the resulting j= son verbatim.<br> ><br> > You can have a glimpse of it here: <a href=3D"http://i.imgur.com/705WU= oF.png" target=3D"_blank">http://i.imgur.com/705WUoF.png</a><br> > or just grab the git master and toy with it yourself :)<br> ><br> > Won't be long till 4.33 I guess...<br> ><br> ><br> > Irmen<br> ><br> ><br> > ----------------------------------------------------------------------= --------<br> > Dive into the World of Parallel Programming. The Go Parallel Website,<= br> > sponsored by Intel and developed in partnership with Slashdot Media, i= s your<br> > hub for all things parallel software development, from weekly thought<= br> > leadership blogs to news, videos, case studies, tutorials and more. Ta= ke a<br> > look and join the conversation now. <a href=3D"http://goparallel.sourc= eforge.net/" target=3D"_blank">http://goparallel.sourceforge.net/</a><br> > _______________________________________________<br> > Pyro-core mailing list<br> > <a href=3D"mailto:[email protected]">[email protected]= rceforge.net</a><br> > <a href=3D"https://lists.sourceforge.net/lists/listinfo/pyro-core" tar= get=3D"_blank">https://lists.sourceforge.net/lists/listinfo/pyro-core</a><b= r> <br> --<br> Kenneth Martin, President<br> Granite SemiCom Inc.<br> 555 Richmond St. W, BX1200/Suite 905<br> Toronto ON<br> <a href=3D"tel:416%20640-2626" value=3D"+14166402626">416 640-2626</a>, <a = href=3D"http://www.granitesemi.com" target=3D"_blank">www.granitesemi.com</= a><br> <br> <br> ---------------------------------------------------------------------------= ---<br> Dive into the World of Parallel Programming. The Go Parallel Website,<br> sponsored by Intel and developed in partnership with Slashdot Media, is you= r<br> hub for all things parallel software development, from weekly thought<br> leadership blogs to news, videos, case studies, tutorials and more. Take a<= br> look and join the conversation now. <a href=3D"http://goparallel.sourceforg= e.net/" target=3D"_blank">http://goparallel.sourceforge.net/</a><br> _______________________________________________<br> Pyro-core mailing list<br> <a href=3D"mailto:[email protected]">[email protected]= rge.net</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/pyro-core" target= =3D"_blank">https://lists.sourceforge.net/lists/listinfo/pyro-core</a><br> </blockquote></div><br></div> --001a11c2e98839b3f6050dcf2994-- --===============6264551106283652790== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ --===============6264551106283652790== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Pyro-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyro-core --===============6264551106283652790==--