Kenneth Reitz changelog.com/posts

Denied: Sinatra for Python

If you’re a Pythonist who’s been longing for some Sinatra action, then look no further. Denied is the next generation Python micro-web-framework, wrapped in a single portable library.

Let’s run a simple routed app on port 8080:

from deny import *

@route('/')
def hello():
      return 'Hello World!'

if __name__ == '__main__':
      run()

It’s a beautiful thing.

[Source on GitHub] [Project Page]

Update

Turns out, the developer wrote this as an April Fool’s joke. Though functional, this micro-framework will not be maintained. If you like what you saw, and want to use a similar, rock-solid, maintained Python framework, have a look at Bottle or Itty.


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00