Sorry what I meant is that you can use modules without web2py, not
that you can use web2py without some of the modules.

All modules together are small. Only gluon.contrib.populate and
gluon.contrib.feedparser are a bit large and you can remove both of
them without consequences because they are not imported.

gluon/*.py is 1063MB
gluon/contrib without populate and feedparser is 853KB.

The total minimal web2py (without populate, feedparser and without
apps) is less than 2MB.

Most modules are less than 10KB and the effect of removing them would
be negligible.

Massimo


On Aug 4, 2:37 am, Phyo Arkar <phyo.arkarl...@gmail.com> wrote:
> >Everything else is pretty much decoupled. sqlhtml.py depends on dal.py
> >and html.py. shell.py depends on everything because acts like main but
> >from shell.
>
> Thanks massimo , But things like contrib, which suppose to be not very
> critical module , but it cannot be removed coz important module like
> main.py html.py depends on contrib. And if i decide , "OK i can live
> without html helpers" and goes to remove html.py, but i can't coz  it
> is used by many important modules :
>
> globals.py:from html import xmlescape, TABLE, TR, PRE
> html.py:from htmlentitydefs import name2codepoint
> main.py:from html import URL as Url
> restricted.py:from html import BEAUTIFY
> sanitizer.py:from htmllib import HTMLParser
> sanitizer.py:from htmlentitydefs import entitydefs
> serializers.py:from html import TAG
> serializers.py:from html import xmlescape
> sqlhtml.py:from html import XML, SPAN, TAG, A, DIV, UL, LI, TEXTAREA,
> BR, IMG, SCRIPT
> sqlhtml.py:from html import FORM, INPUT, LABEL, OPTION, SELECT
> sqlhtml.py:from html import TABLE, THEAD, TBODY, TR, TD, TH
> sqlhtml.py:from html import URL as Url
> tools.py.orig:from html import *
>
> and so on ..
>
>
>
> >I reread your initial post and see that you want to offer download bundles 
> >of your apps
> >packaged together with web2py.  I suggest you do what I did, which is run an 
> >application
> >called TreeSizeFree on your web2py folder, and find all the large files that 
> >are not needed
> and
> >delete them.  Here I am referring to things like README, and so on.
>
> Thanks , i will see that app.
>
> > How do you deal with the Python dependency?
>
> That is one of the problem too, i also made a question about Python
> Dependency on StackOverflow , if it is possible to include directly
> inside a bundle. Results are good for Windows coz it have Portable
> Python but not so well for *Nix variants .
>
> http://stackoverflow.com/questions/6705193/easy-deploying-of-python-a...
>
> On 8/4/11, cjrh <caleb.hatti...@gmail.com> wrote:
>
>
>
>
>
>
>
> > On Thursday, 4 August 2011 00:25:19 UTC+2, Phyo Arkar wrote:
>
> >> 14 MB is small  for "you" Dosen't mean thats small for  other part of of
> >> the world. Here connection speed is Averaged to 64 kbit/s to 256kbit/s
> >> and
> >> random (Frequent) disconnects , people believes 1 MB is already big.
> >> zipped
> >> web2py is already 6.9MB.
>
> >> Plus Bandwidth concern. I use my own Dedicated and VPS servers to host.
> >> They are already busy , and Bigger file-size = more bandwidth , 10MB *
> >> Download  already 10 GB . If this become popular , bandwidth cost will be
> >> great..
>
> > I reread your initial post and see that you want to offer download bundles
> > of your apps packaged together with web2py.  I suggest you do what I did,
> > which is run an application called TreeSizeFree on your web2py folder, and
> > find all the large files that are not needed and delete them.  Here I am
> > referring to things like README, and so on.
>
> > How do you deal with the Python dependency?

Reply via email to