[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame awesome libraries?



Hi René and others

Now after pyweek 25 I have some time to improve my libs.

I would need a little help (I know, its not directly pygame related and if you want to redirect me to the python list I'll be fine with it):

[1] What would be your suggestions to make the stuff more useful?
[2] Any tips on (free) CI builds?
[3] Any tips on packaging for pip?
[4] Any tips for the documentation?
[5] Would you break up libs into smaller, maybe partial parts that are pip installable so they can be installed independently? If so, should each have its own repo or not (keeping it in the same repo in sub directories)?

[6] Might need some improvements, but some time ago I made this and tried to use it everywhere: https://bitbucket.org/dr0id/cookiecutter-pypackage-hg/src/default/

[7] Any hints for best-practices?


[8] One thing that has bothered me along time and I have not found any good answer yet is following: pip installable packages are good for developers while coding and developing. But then, when I want to 'ship' or 'distribute' some program I'm not so sure that is the way to go. Because I think there should be a distinction between a library (that you install in site-packages) and a 'executable' which I might want to install somewhere else (otherwise I would not know hot to run it, maybe using '-m'?). 

[9] Also there is the trouble with versions of the libs (I know, use virtualenv, but that seems laborious) if to 'programs' need different versions of the same lib. So one way around this is to ship all the needed libs with the program (so no imports from site-packages used).

[10] This trouble is visible in some of my libs because sometimes I have the lib and some 'tools' for it and it seems to me that the tools should not go into site-packages. But maybe I got it all wrong or don't know best practices for python programs. Maybe someone can point me to a tutorial or help clarify those points.

~DR0ID


On 07.04.2018 10:29, René Dudfield wrote:
There's several tons of useful and awesome stuff in there DR0ID!

I guess you know this already... but... hosting the documentation somewhere would make it a bit easier to get into. (as would making it pip installable).
It looks like you did at some point.




On Fri, Apr 6, 2018 at 8:40 PM, DR0ID <dr0id@xxxxxxxxxx> wrote:
On 06.04.2018 18:12, Leif Theden wrote:
Ahem.  I'll shill more of my libraries:

https://github.com/bitcraft/animation

Tasks and tweening using pygame groups.  No framework needed to have things execute over time. 

On Thu, Apr 5, 2018 at 8:39 AM, Martin Kühne <mysatyre@xxxxxxxxx> wrote:
On Thu, Apr 5, 2018 at 2:40 PM, Yann Thorimbert
<Yann.Thorimbert@xxxxxxxx> wrote:
> Not exactly awesome,


Come again? What ridiculous standard are you assuming there for "awesome"?

cheers!
mar77i


Hi

here my awsome libs for pygame:

- hierarchial state machine: https://bitbucket.org/dr0id/symplehfsm/overview

- loading sprite sheets (it can load any shapes, but usage is a bit cumbersome, needs an update): https://bitbucket.org/dr0id/spritesheetlib

- collection of useful tools (tweening, animation, context, timing, fonts, spritesystem, skeleton, ...) for games (used mostly in pyweeks): https://bitbucket.org/dr0id/pyknic

- tmx loader: https://bitbucket.org/dr0id/pytmxloader

None of them is pip installable so I recommend to copy them into your project and use them from there. Maybe someone find any of this useful. Contribution and suggestions are welcome.

~DR0ID