SQLAlchemy
Popular ORM library
Interview Relevant: Industry standard
SQLAlchemy
Powerful SQL toolkit and ORM.
Code Examples
python
1from sqlalchemy import create_engine, Column, Integer, String
2from sqlalchemy.orm import declarative_base
3
4Base = declarative_base()
5class User(Base):
6 __tablename__ = 'users'
7 id = Column(Integer, primary_key=True)
8 name = Column(String)
9
10engine = create_engine('sqlite:///:memory:')
11Base.metadata.create_all(engine)