We are looking for solutions that push the envelope, and:
Avoid
- Manually write SQL queries (Python may be larger than OO without passing DSL strings)
- Using Non-Python Data Types for the Prospective Model Definition
- Using a new class of types, rather than perfectly good native Python types
Boast of
- Using Python Objects
- Using Object Oriented and Key-Based Search and Creation
- Fast proto-racing
- No SQL table to create
- Model / type inference or lack of model
- Less lines and characters to enter
It is easy to output to JSON , possibly XML or even protocol buffers .
I am developing web applications, desktop computers and mobile devices, the better portability.
python >> from someAmazingDB import * >> db.taskList = [] >> db['taskList'].append({title:'Beat old sql interfaces','done':False}) >> db.taskList.append({title:'Illustrate different syntax modes','done':True})
Here is the challenge:. The code above should work with very little change or thinking. Like the other import statement and maybe a little more, but Django and SQLAlchemy Models DO NOT CUT IT .
I'm looking for more interesting library suggestions than just "Try Shelve" or "use pickle"
I don't mind Python classes being used for models, but they should be really simple, unlike what you see with Django and the like.
source share