Formerly I've setup a Django with MySQL attached its my projects. I'm considering trying different things with this next project though. Things I need for this to complete is perfect for the customer to have the ability to store a string, username, and timestamp. Then for an additional client to have the ability to download all of the latest of those records following a certain time. I possibly could get it done with Django however it feels as though there's an excessive amount of setup for this type of task. Things I am searching for is a few database or web application that's quite simple to setup will be able to make a lot of http request to to keep the information and then suggest an http request to obtain all of the data from the certain point forward. What exactly are another solutions for carrying this out?
Their hello world example should provide you with a concept of how easy it's:
from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' if __name__ == '__main__': app.run()
For data storage, there are several options, here three that i'm acquainted with:
- SQLite - now bundled up with Python. Single file-based db.
- Redis - a really fast key-value store
- Riak - one other popular db alternative
You may also opt for other document-based dbs like Couch and Mongo.
CherryPy is simply great. Utilize it with NoSQL database like MongoDB or CouchDB. All that's necessary could be completed in only a couple of lines.