Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mariocesar/wiki.py
- Owner: mariocesar
- Created: 2016-12-24T04:20:29.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-26T00:52:31.000Z (about 8 years ago)
- Last Synced: 2024-11-08T15:42:21.685Z (about 2 months ago)
- Language: Python
- Homepage: https://mariocesar.github.io/wiki.py/
- Size: 94.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 inputAssumed 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)