Live data from Hacker News

Kivy – Open-source Python library for rapid development of applications

kivy.org

31–40 of 50 posts

Re: Kivy – Open-source Python library for rapid development of applications

#31
post #10

Earlier quoted context omitted.

I'm pretty sure apps can have dependencies, so that looks like the best solution. Yes, users will be annoyed, but I think it's still better than various other "hacks".

QT has tried that on Android and it's an exceedingly poor solution. Almost no user will click to download additional files -- they've been (rightfully) conditioned to view this as a suspicious technique. As long as you blacklist unneeded libraries on Kivy, you can get the size down to 5 - 10 MB. I personally don't believe this download size is such a problem for users (many native Java apps are upwards of 5 MB). What…

I think startup time has good for very annoying, with android devices of 3 years go, to nearly forgettable, with more modern, high-end devices. I've witnessed nearly instant startups, with devices as the Note 2, not saying it's a solved problem, the cpu speed and even more the read/write speed of the internal storage will have a lot of impact especially on the first start (unpacking python and deps).

For battery usage, i'd love to see data for this, i think drain will come from the amount of action you put in your interface, as well as background processing you'll do, kivy itself, being opengl and cautious about what to update when changes happen, shouldn't add a lot of overhead on this.

I don't think porting to micropython is considered an option, usually, when we want more efficient code, the solution is to do less python, more C, we have a nice integration with Cython, and don't hesitate to go with it as soon as needed.

Re: Kivy – Open-source Python library for rapid development of applications

#32

I have a couple hymnal apps in the Play Store built with Kivy, and reviews suggest that performance is a problem for some people, especially scrolling through long views. I'm in the process of rewriting them using HTML and JavaScript in a WebView. That being said, Kivy is really nice to work with; the documentation is good and it's a well thought-out library. I'd enjoy using it for future apps that don't happen to ha…

Did you use ListView, or did you roll your own ScrollView managed content? We are sorry about the state of ListView currently, and plan to redesign it soon, it's really not optimal currently, and not offering a very useful interface either, so maybe you could fix you issues just putting a GridLayout in a ScrollView and fill it as needed (i documented a way to do a publisher/consumer using threads on my blog, it's efficient for these kind of things).

http://blog.tshirtman.fr/2014/1/14/publisher-consumer-model-...

Re: Kivy – Open-source Python library for rapid development of applications

#34

I have a couple hymnal apps in the Play Store built with Kivy, and reviews suggest that performance is a problem for some people, especially scrolling through long views. I'm in the process of rewriting them using HTML and JavaScript in a WebView. That being said, Kivy is really nice to work with; the documentation is good and it's a well thought-out library. I'd enjoy using it for future apps that don't happen to ha…

Did you use ListView, or did you roll your own ScrollView managed content? We are sorry about the state of ListView currently, and plan to redesign it soon, it's really not optimal currently, and not offering a very useful interface either, so maybe you could fix you issues just putting a GridLayout in a ScrollView and fill it as needed (i documented a way to do a publisher/consumer using threads on my blog, it's eff…

Initially I used the ListView, but found performance problems on every device. I then rolled my own using a layout in a ScrollView, and it's better, but still troublesome. I'll compare what I've done to what you wrote about and see if I can improve matters.

Re: Kivy – Open-source Python library for rapid development of applications

#35

Anyone tried Kivy for game development? I'm interested in brushing up my Python and was thinking about making a game that could be OpenGL accelerated, and it seemed like a good match.

Yes, you can see examples of games done with kivy in the two contests (kivy.org/#contest), and there are also a few games on the market, it's also interesting to look at kovak's efforts on kivent.org, a 2D game engine built on top of kivy and cymunk, which seems like the way to go for games with a lot of actors.

Re: Kivy – Open-source Python library for rapid development of applications

#36

Anyone tried Kivy for game development? I'm interested in brushing up my Python and was thinking about making a game that could be OpenGL accelerated, and it seemed like a good match.

Yes, you can see examples of games done with kivy in the two contests (kivy.org/#contest), and there are also a few games on the market, it's also interesting to look at kovak's efforts on kivent.org, a 2D game engine built on top of kivy and cymunk, which seems like the way to go for games with a lot of actors.

Cool, thanks! I'll have a look at that. Does the kivent.org stuff support Tiled?

Re: Kivy – Open-source Python library for rapid development of applications

#38

Earlier quoted context omitted.

Yes, you can see examples of games done with kivy in the two contests (kivy.org/#contest), and there are also a few games on the market, it's also interesting to look at kovak's efforts on kivent.org, a 2D game engine built on top of kivy and cymunk, which seems like the way to go for games with a lot of actors.

Cool, thanks! I'll have a look at that. Does the kivent.org stuff support Tiled?

I don't think it does right now, but it should be pretty easy to add this kind of support.

Re: Kivy – Open-source Python library for rapid development of applications

#39
post #37

Is there any plotting library I can use with Kivy?, something of the likes of D3.js ( http://github.com/mbostock/d3/wiki/Gallery )

matlibplot is one of the best and most extensive plotting libraries. You also have d3py that is a d3.js implementation in python. Do a google search for python graph or python plot and you will find plenty.

Re: Kivy – Open-source Python library for rapid development of applications

#40
post #26

I found this in my logs from 2013 and it looks really nice now. Another example app with Kivy + SQLite: Image Viewer and Organizer, https://github.com/gau-veldt/ImageOrg This is also interesting: http://libnui.github.io/nui3/ I'm not exactly sure anymore about the relation. Is Kivy based on libnui?

Kivy looks very nice but NUI is a very different beast (I'm the author). The main difference being that even though NUI is a complete multi-plateform framework that uses OpenGL for rendering, it has a strictly C++ API. If you want to see apps built with NUI I just released reChord: http://bit.ly/rechord And also some very nice music apps with NUI: http://intua.net/products/beatmaker2/ http://www.whitenoiseaudio.com/a…

In the GitHub description (https://github.com/kivy/kivy), it says about Kivy:

"Open source software library for creating NUI applications, running on Windows, Linux, MacOSX, Android and iOS"

I guess that is why I searched for NUI and I probably found your lib. I don't remember that I have heard that term "NUI" before.

Post reply on HN