eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

216
active users

#wsgi

0 posts0 participants0 posts today
Marcus Almeida<p>Built a Python library to enable HTTP method override through form parameters or headers — supports PUT, DELETE, PATCH, and more.</p><p><a href="https://github.com/marcuxyz/wsgi_method_override" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/marcuxyz/wsgi_metho</span><span class="invisible">d_override</span></a></p><p><a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/wsgi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>wsgi</span></a> <a href="https://mastodon.social/tags/http" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>http</span></a> <a href="https://mastodon.social/tags/flask" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>flask</span></a> <a href="https://mastodon.social/tags/fastapi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fastapi</span></a> <a href="https://mastodon.social/tags/django" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>django</span></a></p>
☮ ♥ ♬ 🧑‍💻<p><span class="h-card" translate="no"><a href="https://ioc.exchange/@bluetea" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>bluetea</span></a></span> “Colophon Redux”</p><p>Back in 2008, I whipped up this site with two hundred line hack using a newly created web framework called web.py and a brand new google project, App Engine. From 2008 to today, that’s how <a href="https://ioc.exchange/tags/seldomlogical" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>seldomlogical</span></a> worked. </p><p>From the user perspective it looked like plain HTML pages being served. Behind the scenes, code read markdown and converted it to HTML.</p><p>❝ Every time my blog ran, a little bit of Aarons code would execute</p><p>This was prior to the various web frameworks for python we take for granted today. Web.py utilised WSGI and I chose googles new toy, GAE to run it.</p><p><a href="https://ioc.exchange/tags/webpy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webpy</span></a> / <a href="https://ioc.exchange/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> / <a href="https://ioc.exchange/tags/WSGI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WSGI</span></a> / <a href="https://ioc.exchange/tags/GAE" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GAE</span></a> / <a href="https://ioc.exchange/tags/aaronswartz" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>aaronswartz</span></a> / <a href="https://ioc.exchange/tags/AppEngine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AppEngine</span></a> / &lt;<a href="https://seldomlogical.com/redux.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">seldomlogical.com/redux.html</span><span class="invisible"></span></a>&gt;</p>
☮ ♥ ♬ 🧑‍💻<p>A Quick Way To Evaluate Software Frameworks</p><p>One of the most impressive bits of <a href="https://ioc.exchange/tags/software" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>software</span></a> I’ve used is <a href="https://ioc.exchange/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a>. When I started to learn Python, it was version 1.5, a long time ago. I was immediately impressed with the tutorial. It was the first port of call. Here it is now:</p><p>&lt;<a href="https://docs.python.org/3/tutorial/index.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">docs.python.org/3/tutorial/ind</span><span class="invisible">ex.html</span></a>&gt;</p><p>Read the tutorial basics and you could start exploring the language library </p><p>&lt;<a href="https://docs.python.org/3/library/index.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">docs.python.org/3/library/inde</span><span class="invisible">x.html</span></a>&gt; </p><p>knowing you could master enough to move to more advanced concepts. Want to do something more complicated? Say build a web server?</p><p>First you might try the <a href="https://ioc.exchange/tags/HOWTO" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HOWTO</span></a> pages trying <a href="https://ioc.exchange/tags/sockets" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sockets</span></a>: </p><p>&lt;<a href="https://docs.python.org/3/howto/index.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">docs.python.org/3/howto/index.</span><span class="invisible">html</span></a>&gt;</p><p>After reading about the limitations you might try the <a href="https://ioc.exchange/tags/PEPS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PEPS</span></a> (Python Enhancement Proposal) What is a PEP? Try reading this page:</p><p>&lt;<a href="https://peps.python.org/pep-0001/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">peps.python.org/pep-0001/</span><span class="invisible"></span></a>)</p><p>Finally you might decide <a href="https://ioc.exchange/tags/WSGI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WSGI</span></a> is what you want and read the specification at <br>&lt;<a href="https://peps.python.org/pep-0333/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">peps.python.org/pep-0333/</span><span class="invisible"></span></a>&gt;. I travelled this path in 2007/8 to build a version of my blog engine. ☺️</p><p>&lt;<a href="https://seldomlogical.com/redux.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">seldomlogical.com/redux.html</span><span class="invisible"></span></a>&gt;</p><p>So I go the latest build on <a href="https://ioc.exchange/tags/Deno" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Deno</span></a>, install it and try a simple blog engine to see how it works </p><p>&lt;<a href="https://deno.com/blog/build-a-blog-with-fresh" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">deno.com/blog/build-a-blog-wit</span><span class="invisible">h-fresh</span></a>&gt;. </p><p>The example code fails, the source code fails. I see the basic documentation for it (yet to try, but skimming through, it appears okay.) The tutorial only a couple of years old has rusted, the source is unmaintained. The issue is with JS / <a href="https://ioc.exchange/tags/React" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>React</span></a> / <a href="https://ioc.exchange/tags/Preact" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Preact</span></a> where plain old <a href="https://ioc.exchange/tags/HTML5" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML5</span></a> and <a href="https://ioc.exchange/tags/CSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSS</span></a> will do. 😔</p><p>A quick example how the basics have to documented, correct in bite sized pieces. The <a href="https://ioc.exchange/tags/HOWTOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HOWTOS</span></a> maintained and blog <a href="https://ioc.exchange/tags/examples" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>examples</span></a> periodically revised.</p>