Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,150,807 members, 7,810,100 topics. Date: Friday, 26 April 2024 at 08:46 PM |
Nairaland Forum / Science/Technology / Programming / Need Help With Python Server Side Programming (1376 Views)
How To Write A Middleware In Express.js (Node Server Side Framework) / [Advice] For New Programmers, what server-Side Programming Language Is The Best? / PHP Or Python For Server-side Scripting (2) (3) (4)
Need Help With Python Server Side Programming by ProNdubuisi: 6:26pm On Dec 12, 2016 |
Hello world, does anyone here write sever side code with python? just learnt the language and want to go into web dev with it, but all i see is Django tutorials online, i dislike frame works. Do you know how i can hard code Python like you hard code php, html css and the rest? i need someone who has done it before to walk me through |
Re: Need Help With Python Server Side Programming by 4kings: 8:18pm On Dec 12, 2016 |
Following... I need to know this too. But frameworks are helpful most times. |
Re: Need Help With Python Server Side Programming by Dreadlord: 9:21pm On Dec 12, 2016 |
In my opinion, I am I don't see why you want to reinvent the wheel. I bet you don't use class libraries, you don't even use a programming language. You code in Binary. You don't even need code, you process data manually since you are a boss man. 3 Likes |
Re: Need Help With Python Server Side Programming by kudaisi(m): 9:35pm On Dec 12, 2016 |
ProNdubuisi: [b]Do I have to use a web framework? 1 Like |
Re: Need Help With Python Server Side Programming by greatface(m): 9:40pm On Dec 12, 2016 |
I bet You are better off with frameworks. You "may" regret reinventing the wheel unless it is for learning purposes or some other better reasons. |
Re: Need Help With Python Server Side Programming by 4kings: 9:41pm On Dec 12, 2016 |
Dreadlord:Haba this is too far. He just wants to know how to do it himself. Me too.. That knowledge could be useful. |
Re: Need Help With Python Server Side Programming by Dreadlord: 10:05pm On Dec 12, 2016 |
4kings:My bad, I I just get really frustrated when someone thinks it's way cooler to write a hello world application in treefrog than writing a complex web application in Ruby or php. OP, my apologies. I you should try oriely's programming Python 4th edition it has what you are looking for. Once again sorry. |
Re: Need Help With Python Server Side Programming by 4kings: 10:23pm On Dec 12, 2016 |
Dreadlord:Thanks. I'll try downloading the pdf |
Re: Need Help With Python Server Side Programming by ProNdubuisi: 7:28am On Dec 13, 2016 |
Dreadlord:I just want to learn, if everyone uses frameworks, who will code frameworks Keanu? Thanks for stopping by 2 Likes |
Re: Need Help With Python Server Side Programming by ProNdubuisi: 7:32am On Dec 13, 2016 |
Dreadlord:will make the download ASAP thanks |
Re: Need Help With Python Server Side Programming by kudaisi(m): 9:23am On Dec 13, 2016 |
If you must do web development without a framework in python, you will need to implement the Web Server Gateway Interface (WSGI. According to Wikipedia It is a specification for simple and universal interface between web servers and web applications or frameworks for the Python programming language. PEP3333 is the most recent version of this specification available on the python official website; The document specifies a proposed standard interface between web servers and Python web applications or frameworks, to promote web application portability across a variety of web servers.Here's a quote from the "Original Rationale and Goals (from PEP 333)" Python currently boasts a wide variety of web application frameworks, such as Zope, Quixote, Webware, SkunkWeb, PSO, and Twisted Web -- to name just a few [1] . This wide variety of choices can be a problem for new Python users, because generally speaking, their choice of web framework will limit their choice of usable web servers, and vice versa.https://www.python.org/dev/peps/pep-3333/ 1 Like |
Re: Need Help With Python Server Side Programming by kudaisi(m): 9:31am On Dec 13, 2016 |
However, you can still reduce the overhead of implementing every bit of the specification by yourself (I strongly suggest you understand it though) by using existing libraries. One of such is Werkzeug - The Python WSGI Utility Library, and it's the most popular that I know of. There are other option asides Werkzeug so you might want to check them out too, a little googling should help. http://werkzeug.pocoo.org/ 1 Like |
Re: Need Help With Python Server Side Programming by lordZOUGA(m): 11:47am On Dec 13, 2016 |
If you are interested in returning HTML from a server just like most webservers, then you can just create a server listening to a port and return a bunch of strings from the server (sounds easy right?). The problem is that you also have to build HTTP headers and manage I/O between server and clients (this is unbelievably complex). Frameworks are helpful because they have already implemented most of these features reliably. I encourage you to try building a webserver from scratch, it will make you appreciate the usefulness of Frameworks. 2 Likes |
Re: Need Help With Python Server Side Programming by kudaisi(m): 12:12pm On Dec 13, 2016 |
lordZOUGA:The environment variable his server has to cater for (and this is just a tip of the iceberg) REQUEST_METHOD 1 Like |
Re: Need Help With Python Server Side Programming by ProNdubuisi: 6:14am On Dec 14, 2016 |
Thanks guys for your researched inputs and criticisms. Keep them coming, will keep you posted if i hit a solution. Thanks once more. |
Re: Need Help With Python Server Side Programming by ANTONINEUTRON(m): 8:10am On Dec 14, 2016 |
Then Get Ready To Configure Some Modules And Variable In Apache Or The Server Engine You'll Be Using U Can Use Wsgi Or Mod_python Module I Saw A Tutorial On Google On How To Configure Server To Run Python Search "Configuring Apache(or Your Server Engine) To Run Python" Practice The Steps On Your Pc If Work, Get A Host That Let U Configure Your Server Or A Host That Has Already Configure The Server For Python. Even If U Re Even Using A Framework, You'll Still Configure Your Server If You Are Deploying So U See, Everything Is Configuration Simple And Complicated 2 Likes |
Re: Need Help With Python Server Side Programming by logicab: 8:22am On Dec 14, 2016 |
1 Like |
(1) (Reply)
Swapspace / Building An Ionic 3 Shopping Cart App With Firebase Realtime Database Part 2 / How Do I Write Cleaner Codes In Python?
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 42 |