₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,573 members, 8,431,607 topics. Date: Monday, 22 June 2026 at 02:35 PM

Toggle theme

Mexamor's Posts

Nairaland ForumMexamor's ProfileMexamor's Posts

1 (of 1 pages)

ProgrammingRe: Web Programming Tutorial In Python. by mexamor(m): 3:32pm On Aug 04, 2017
webstacka:
No much introduction. I'm a bit free so I decided to do this tutorial before I get busy again. Hope someone learns something from this tutorial.

The tutorial is about web programming in python using a micro web framework called bottle. Python bottle is a minimalistic and fast web framework used for developing simple REST services. However, nothing stops you from developing a full-fledged web application with python bottle. One good thing, or maybe a con, of bottle is its single file approach. Bottle is a single python file that requires no external library order than the python standard library. However, this approach makes it a bit difficult to integrate it with other modules, but this can be solved by building your web application with object-orientation in mind from scratch.

REQUIREMENTS:

1) Python 3.4 +

2) Bottle web framework (pip install bottle) with internet connection.

3) Web server (optional). Bottle can run with python's standard wsgiref server bundled with python. However, we need a faster web server that will make our development easier. Popular wsgi-based web servers for python are cherrypy, rocket, twisted, tornado, gunicorn, paste, etc. Since we're just using it for development, our best bet would be python paste or cherrypy. I'll use paste (pip install paste) and that's it!

4) text editor. Any good text editor is okay by me, except notepad. Well, I use notepad++

That is all we need for now. Let's get started!
webstacka pls we need to talk prv,can i have your email or digits OR should i drop mine

1 (of 1 pages)