2.7 Support and KAY

22 views
Skip to first unread message

someone1

unread,
Oct 11, 2011, 9:58:17 PM10/11/11
to kay-users
Is KAY ready for the new Python 2.7 runtime? I'm sure there'll be some
optimization done given additional native libraries and such, but as
far as handling concurrent requests and such, will this require a big
shift with KAY or will it be seamless?

Takashi Matsuo

unread,
Oct 19, 2011, 1:34:13 AM10/19/11
to kay-...@googlegroups.com

Basically the change is straightforward.
First, you need to tweak your app.yaml like following:

- url: /_kay/.*
  script: kay.main.application
  login: admin

- url: /_ah/queue/deferred
  script: kay.main.application
  login: admin

- url: /.*
  script: kay.main.application

Some features won't work, but core features will work without any changes in python code.
Actually my Japanese blog is working with python2.7 runtime with threadsafe:true for more then 2 months or so :)

-- 
Takashi Matsuo
matsuo....@gmail.com
Kay's daddy


2011/10/11 someone1 <some...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "kay-users" group.
To post to this group, send email to kay-...@googlegroups.com.
To unsubscribe from this group, send email to kay-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/kay-users?hl=en.


someone1

unread,
Oct 19, 2011, 10:30:27 AM10/19/11
to kay-users
Great! Glad to hear it!

Thanks for your response. I'm glad you've been able to work with the
framework in a live website so you can verify that it works. I hope
the next version of Kay is optimized for the new 2.7 runtime and
available soon! My test from working with simplejson versus the json
library included with 2.7 has greatly reduced the execution time of
all my tasks (I do heavy work with APIs and JSON). I can only imagine
how many performance improvements substitutions such as this within
Kay can give. Having my code updated/optimized is great, but having
the framework which runs my site updated would probably be more
beneficial.

Thanks again!

-Prateek

On Oct 19, 1:34 am, Takashi Matsuo <matsuo.taka...@gmail.com> wrote:
> Basically the change is straightforward.
> First, you need to tweak your app.yaml like following:
>
> - url: /_kay/.*
>   script: kay.main.application
>   login: admin
>
> - url: /_ah/queue/deferred
>   script: kay.main.application
>   login: admin
>
> - url: /.*
>   script: kay.main.application
>
> Some features won't work, but core features will work without any changes in
> python code.
> Actually my Japanese blog is working with python2.7 runtime with
> threadsafe:true for more then 2 months or so :)
>
> --
> Takashi Matsuo
> matsuo.taka...@gmail.com
> Kay's daddy
>
> 2011/10/11 someone1 <someo...@gmail.com>
Reply all
Reply to author
Forward
0 new messages