using datamapper, if you want to "either find the first resource matching some given criteria or just create that resource if it can't be found, you can use #first_or_create."
i am using flask-sqlalchemy and am wondering if there is a similar feature.
thanks!