Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 836953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:04:01+00:00 2026-05-15T05:04:01+00:00

I love webpy, it’s really quite Pythonic but I don’t like having to add

  • 0

I love webpy, it’s really quite Pythonic but I don’t like having to add the url mappings and create a class, typically with just 1 function inside it.
I’m interested in minimising code typing and prototyping fast.

Does anyone have any up and coming suggestions such as Bobo, Nagare, Bottle, Flask, Denied, cherrypy for a lover of webpy’s good things?

What makes it a good reason?

Also I don’t mind missing out (strongly) text based templating systems, I use object oriented HTML generation. Code should be able to look something like this:

def addTask(task):
    db.tasks.append({'task':task,'done':False})
    return 'Task Added'
def listTasks():
    d = doc()
    d.body.Add(Ol(id='tasks'))
    for task in db.tasks:
        taskStatus = 'notDoneTask'
        if task.done: taskStatus = 'doneTask'
        d.body.tasks.Add(Li(task.task,Class=taskStatus))
    return d

Minimalistic CherryPy is looking like a strong contender at the moment. Will there be a last minute save by another?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:04:01+00:00Added an answer on May 15, 2026 at 5:04 am

    Flask, Armin Ronacher’s microframework built on top of Werkzeug, Jinja2 and good intentions (though you can use whichever templating engine you like, or none at all), does URL mapping very concisely.

    @app.route("/")
    def index():
      return """Hello, world. <a href="/thing/spam_eggs">Here's a thing.</a>"""
    
    @app.route("/thing/<id>")
    def show_thing(id):
      return "Now showing you thing %s."%id
      # (or:) return render_template('thing.html', id = id)
    

    Maybe that’s what you’re looking for?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I love Emacs but don't like how it does indentation: either an uncontrollable mix
I love Ruby and its framework, but I don't think that Ruby On Rails
I love the JSLint add-in - very useful. Having just upgraded to VS2010, I
I love RGoogleDocs and use it a lot. However, I don't like entering my
I love using the TODO list in TextMate but I've been having issues of
I love tabs, and prefer it to spaces in indentation. But I'd like to
I love play, But cannot use JPA for some reasons. Could someone really help
I love paredit. But there are a couple of things I hate, and have
I love Jenkins and appreciate that it is an active project. Still, I don't
I love LINQ to SQL but it has been bugging me that in using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.