Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mariocesar/wiki.py

Writing web applications using only the Python standard modules
https://github.com/mariocesar/wiki.py

Last synced: 3 days ago
JSON representation

Writing web applications using only the Python standard modules

Awesome Lists containing this project

README

        

# Writing web applications with Python

This tutorial is a reply to the HN popular article about [Writing Web Applications using only Go](https://news.ycombinator.com/item?id=13247858), I'm curious if is possible teach to build web applications with Python and just its standard modules. So far it appears that Go has a more featured standard library; Python, even if it has all the tools, gives the developer the work to implement a useful-enough application almost from scratch. I believe is for the same reason, that python have a rich and broad options in Web Frameworks.

So this Tutorial follows the structure and tone from the Go original docs, I find it useful and well suited for teaching.

## Tutorial

This tutorial has no depedency other than Python 3.6. See https://mariocesar.github.io/wiki.py/ to follow the complete guide.

Covered in this tutorial:

- Creating a data structure with load and save methods
- Using the wsgiref and urllib module to build web applications
- Using the string module to process HTML templates
- Using the re module to validate user input

Assumed knowledge:

- Programming experience
- Understanding of basic web technologies (HTTP, HTML)
- Some UNIX/DOS command-line knowledge

## See the resulting web application

![demo](https://raw.githubusercontent.com/mariocesar/wiki.py/master/docs/assets/demo.gif)