Cornice and SQLAlchemy

Cornice and SQLAlchemy

Cornice provides helpers to build and document REST-ish Web Services with Pyramid; and SQLAlchemy is the best Python ORM. I wanted to use Cornice and SQLAlchemy to make a simple RESTful webapp and couldn’t find any info on how to put them together. Here’s...
Confused by SqlAlchemy’s DBSession in Pyramid?

Confused by SqlAlchemy’s DBSession in Pyramid?

I was, I wanted to know: What is the DBSession anyway? How does that work in my unit tests? If I want to use my webapp code outside of the webapp (in a background process) how do I do that? Let’s see if we can answer those questions. helloengine.py # sqlalchemy...