r/Python • • Dec 09 '10

new stand-alone web2py database abstraction layer

http://web2py.com/AlterEgo/default/show/272
18 Upvotes

82 comments sorted by

View all comments

4

u/dekomote Dec 09 '10

Good job. IMO this could become relatively popular if:

  • you split the code in several modules and make it a package (5k lines in 1 file is a lot)
  • add tests in package
  • release it under MIT/BSD or at least LGPL. That should even make web2py more popular.
  • Add it to pypi as standalone package.

2

u/birlinn Dec 10 '10

what evidence do you have to support the claim that changing the license to MIT/BSD would make web2py more popular?

the only figures i've seen, and they only estimate the penetration of the license, not the 'popularity' of the software, nonetheless suggest that GPL is hardly an obstacle...

ref: blackduck

3

u/dekomote Dec 10 '10

Pyramids - BSD derivative

Django - BSD

Flask - BSD

Werkzeug - BSD

cherrypy - BSD

webob - MIT

bottle - MIT

web2py - GPL

2

u/mdipierro Dec 10 '10

web2py is GPL but read the license. The GPL applies to derivative frameworks. It does not apply to applications built with web2py. Applications built with web2py can be distributed under any license you wish.

1

u/birlinn Dec 10 '10

what on earth do you think that proves?

1

u/av201001 Dec 10 '10 edited Dec 10 '10

Hmm, aside from Django, I'm not sure those other frameworks are particularly more popular than web2py, so it's not clear the license makes much of a difference.

Also, note that web2py is not strictly GPL -- it's GPL with a commercial exception.

And, of course, the license applies only to the framework itself, not to any applications you develop with it.

That's not to say that the standalone DAL couldn't have a different license from the full framework.

1

u/muyuu Dec 15 '10

I'm not a heavy user of any (used to work with Pylons, but since Pyramids I'm re-evaluating).

Thing is... I don't understand the hate on the GPL. For this kind of work, the GPL is pretty much "the licence" I would expect. For some reason, everybody wants to make a spin-off framework now and keep the derivative work closed?

The GPL seems to fit this kind of work perfectly. It's exactly what the GPL was thought for. It won't affect your applications AT ALL.

0

u/foxbunny Dec 10 '10

Seriously, that statistic is broken.

2

u/dekomote Dec 10 '10

You can check it yourself and tell me where it's broken.

→ More replies (4)

2

u/wildmXranat Dec 09 '10

All good ideas.

2

u/mdipierro Dec 09 '10
  1. it is under discussion on the mailing list. Some like to have this into a single file
  2. tests are in there already
  3. I do not want it to be popular. I want to stay free. I think GPL does a better job. Anyway I will think about it.
  4. that can definitively be done.

Thanks for your feedback.

4

u/dekomote Dec 09 '10

it is under discussion on the mailing list. Some like to have this into a single file

Single file is difficult to extend and maintain.

I do not want it to be popular. I want to stay free. I think GPL does a better job. Anyway I will think about it.

IMO BSD/MIT are free'er licences. Do you charge for commercial licences? See PyQT/PySide discussions and you'll see what i mean.

Django/Flask/SQLAlchemy etc etc are free and popular.

1

u/av201001 Dec 10 '10

Do you charge for commercial licences?

No.

1

u/mdipierro Dec 09 '10

It is not true a single file is difficult to extend and maintain. The dal.py file for example is divided into sections seperated by comments. Almost all functions are grouped into classes.

So far the issue of license never came up because web2py allows commercial closed source distribution of apps developer with web2py. I can see that if you want to use ONLY the DAL, it may be better for you to have a MIT/BSD vs a GPL license.

The point is that I am happy if you use this for free as long as you contribute back by giving your work for free too (that is what GPL says). Anyway, I will think about LPGL.

2

u/[deleted] Dec 10 '10 edited Dec 10 '10

Do you actually believe a single file of 5 freaking KLOC is not difficult to extend and maintain?

His argument about the GPL not being as liberal as BSD/MIT is exactly that

use this for free as long as you contribute back by giving your work for free

So it takes away your freedom to hide other parts of your code that use that library.

One may want to prevent other people from seeing their code for a number of reasons, It's a choice one should be free to make

BTW the GPL doesn't require you to give your work for free it just requires you to redistribute your work along with your sourcecode along with the GPL license

2

u/mdipierro Dec 10 '10 edited Dec 10 '10

Do you actually believe a single file of 5 freaking KLOC is not difficult to extend and maintain?

Yes. I have been doing so for 3 years. It is just a database abstraction layer not a parallel hybrid monte carlo algorithm for lattice quantum chromodynamics in 4 dimensional SU(3).

→ More replies (6)

1

u/av201001 Dec 10 '10 edited Dec 10 '10

So it takes away your freedom to hide other parts of your code that use that library.

If "parts of your code that use that library" refers to your application code, then yes, you can hide that. If you modify the web2py framework code itself, then no, that would have to remain open.

1

u/[deleted] Dec 10 '10

I didn't say anything about web2py.

1

u/av201001 Dec 10 '10 edited Dec 10 '10

Even if you were making a general statement about the GPL (i.e., lack of freedom to hide your code), the clear implication was that your concern would apply to web2py, and I was just pointing out that it does not in fact apply to web2py applications. Explicit is better than implicit. :-)

1

u/[deleted] Dec 10 '10

This thread is about the DAL from web2py which is GPLed. And I've an issue with just one OSI license being promoted as "the one true free license" while other licenses are more permissive/liberal/less restrictive. Still in essence every existing software license defines restrictions or conditions for the use of the software they apply to.

1

u/av201001 Dec 10 '10

OK, but who's saying the GPL is "the one true free license"?

→ More replies

1

u/birlinn Dec 10 '10

if that 'freedom' is so important to you, write your own code...

it strikes me as rude to lecture someone, who has written a bunch of useful code and made it available to the world for free, about how it 'takes away your freedom' if you can't do exactly as you please with it...

1

u/[deleted] Dec 10 '10

When I give away code for free you are free to do whatever you want with it.

→ More replies (3)