But part of the advantage with jQuery being single-file there is ease of deployment. Python isn't quite as handicapped in this areas as Javascript is. A single line in requirements.txt can add something as complex a complex library to your project without a second thought.
Re:Bottle: Single-File Python Web Framework
by lifthrasiir on Sunday July 17, 2011 @11:32PM
(#2775006)
And you'll end up with the complexity of dependencies with mismatched and/or incompatible versions. Adding a dependency explicitly to the source code is the ultimate, albeit somewhat inefficient, solution which is often useful. In Python, for example, BeautifulSoup has long recommended this practice.
See also the SQLite amalgamation for another example of a single-file deployment: http://www.sqlite.org/amalgamation.html
Re:Bottle: Single-File Python Web Framework
by heydenberk on Tuesday July 19, 2011 @12:09AM
(#2779575)
(Client-side) JavaScript doesn't have a simple, builtin pattern for module dependency the way Python does, though.
I haven't used bottle yet (just starting), but I'm very impressed with the templating code which seems very powerful and simple. Including the templating system along with the rest of the framework in a single file, forced the developer to think about it more.