News for hackers. Stuff that matters.
Re:My Own Python Web Framework by giancarlostoro on Wednesday February 22, 2023 @12:58PM (#34899778)
The nice thing about Python is if you just target the WSGI spec, you can have a web framework that can be deployed to an insane amount of web servers. It's just a standard for how you receive incoming requests and what have you, other languages have similar offerings. So yes, Spider could be a thing in a few weeks. I forget if Bottle.py is WSGI based or not, but it wouldnt surprise me if you could conjure up something as small as Bottler.py that specifically works with WSGI.

Edit: Sitting down and writing my own WSGI web library is on my bucket list, I just have other items I want to do more.

Re:My Own Python Web Framework by sigzero on Wednesday February 22, 2023 @01:11PM (#34900035)
"Bottle is a fast, simple and lightweight WSGI micro web-framework for Python."
Re:My Own Python Web Framework by susam on Wednesday February 22, 2023 @03:04PM (#34901802)
> Sitting down and writing my own WSGI web library is on my bucket list

I did something like that many years ago: https://github.com/susam/ice

Documentation: https://icepy.readthedocs.io/en/latest/tutorial.html

I don’t use it anymore though. By the time I finished writing it, I was already hooked to Common Lisp and Hunchentoot for web development. So this tiny WSGI microframework remained as a hobby project.

Re:My Own Python Web Framework by giancarlostoro on Thursday February 23, 2023 @08:28AM (#34910275)
I'm still hooked to Python though I get paid for .NET and so I think it would do me good to build a WSGI web library so I feel more confidence working with WSGI, of course most web libraries implement it well enough I never notice or care that WSGI is being used outside of configuring it and moving on, Django is a good example of this.