You are here

Back to top

Essential Sqlalchemy: Mapping Python to Databases (Paperback)

Essential Sqlalchemy: Mapping Python to Databases Cover Image
Usually Ships in 1-5 Days


Dive into SQLAlchemy, the popular, open-source code library that helps Python programmers work with relational databases such as Oracle, MySQL, PostgresSQL, and SQLite. Using real-world examples, this practical guide shows you how to build a simple database application with SQLAlchemy, and how to connect to multiple databases simultaneously with the same metadata.

SQL is a powerful language for querying and manipulating data, but it's tough to integrate it with your application. SQLAlchemy helps you map Python objects to database tables without substantially changing your existing Python code. If you're an intermediate Python developer with knowledge of basic SQL syntax and relational theory, this book serves as both a learning tool and a handy reference.

Essential SQLAlchemy includes several sections:

  • SQLAlchemy Core: Provide database services to your applications in a Pythonic way with the SQL Expression Language
  • SQLAlchemy ORM: Use the object relational mapper to bind database schema and operations to data objects in your application
  • Alembic: Use this lightweight database migration tool to handle changes to the database as your application evolves
  • Cookbook: Learn how to use SQLAlchemy with web frameworks like Flask and libraries like SQLAcodegen

About the Author

Jason works at Cisco as a Software Engineer working on OpenStack. Prior to switching to development a few years ago, he spent several years as a systems architect and building data centers and cloud architectures for several of the largest tech companies, hospitals, stadiums, and telecomm providers. He's a passionate developer who regularly speaks at local and national events about technology. He's also the chair of the PyTennessee conference. He loves solving human problems, and has a side project, Sucratrend, devoted to helping diabetics manage their condition and improving their quality of life. He has used SQLAlchemy in web, data warehouse and analytics applications.Rick Copeland is the co-founder and CEO of, an Atlanta-based company which provides a SaaS solution for the email compliance and deliverability space. He is also an experienced Python developer with a focus on both relational and NoSQL databases, and has been honored as a MongoDB Master by MongoDB Inc. for his contributions to the community. He is a frequent speaker at various user groups and conferences, and an active member of the Atlanta startup community.

Product Details
ISBN: 9781491916469
ISBN-10: 149191646X
Publisher: O'Reilly Media
Publication Date: December 7th, 2015
Pages: 208
Language: English