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 904803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:06:42+00:00 2026-05-15T16:06:42+00:00

Make things as simple as possible, but no simpler. Can we find the solution/s

  • 0

“Make things as simple as possible, but no simpler.“

Can we find the solution/s that fix the Python database world?

Update: A ‘lustdb’ prototype has been written by Alex Martelli – if you know any somewhat lightweight, high-level database libraries with multiple backends we could wrap in syntax sugar honey, please weigh in!

from someAmazingDB import *  
#we imported a smart model class and db object which talk to database adapter/s
class Task (model): 
    title = ''
    done = False #native types not a custom object we have to think about!

db.taskList = []
#or
db.taskList = expandableTypeCollection(Task) #not sure what this syntax would be

db['taskList'].append(Task(title='Beat old sql interfaces',done=False))
db.taskList.append(Task('Illustrate different syntax modes',True)) # ok maybe we should just use kwargs

#at this point it should be autosaved to a default db option

#by default we should be able to reload the console and access the default db:

>> from someAmazingDB import *
>> print 'Done tasks:'
>> for task in db.taskList:
>>     if task.done:
>>         print task.title
'Illustrate different syntax modes'

I’m a fan of Python, webPy and Cherry Py, and KISS in general.

We’re talking automatic Python to SQL type translation or NoSQL.
We don’t have to totally be SQL compatible! Just a scalable subset or ignore it!

Re:model changes, it’s ok to ask the developer when they try to change it or have a set of sensible defaults.

Here is the challenge: The above code should work with very little modification or thinking required. Why must we put up with compromise when we know better?

It’s 2010, we should be able to code scalable, simple databases in our sleep.

If you think this is important, please upvote!

  • 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-15T16:06:43+00:00Added an answer on May 15, 2026 at 4:06 pm

    I’ve been busy, here it is, released under LGPL:
    http://github.com/lukestanley/lustdb

    It uses JSON as it’s backend at the moment.

    This is not the same codebase Alex Martelli did.
    I wanted to make the code more readable and reusable with different
    backends and such.

    Elsewhere I have been working on object oriented HTML elements
    accessable in Python in similar ways, AND a library for making web.py
    more minimalist.

    I’m thinking of ways of using all 3 elements together with automatic
    MVC prototype construction or smart mapping.

    While old fashioned text based template web programming will be around
    for a while still because of legacy systems and because it doesn’t
    require any particular library or implementation, I feel soon we’ll
    have a lot more efficent ways of building robust, prototype friendly
    web apps.

    Please see the mailing list for those interested.

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

Sidebar

Related Questions

My boss believes that wizards make things simple for the user. I think they
To make things simple, my Delphi XE application contains objects in charge of generating
I have a wordpress theme that I like to duplicate. To make things easier
I'm trying to make a function that does different things when called on different
I've created a simple facebook app that can run as a tab on a
I have an ASP.NET form that the user can make lots of changes to,
I couldn't find this in the docs, but think it must be possible. I'm
Alright, I'll try and make this as simple as possible (I was seeming to
EDIT: Just to make things clear, this problem was caused by a typo in
I basically want to make things easier by just looping LinkButtons instead of making

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.