Reusing SQLAlchemy models across projects
I have some standard SQLAlchemy models that I reuse across projects. Something like this: from sqlalchemy import Column, Integer, String, Unicode from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class Category(Base): __tablename__ = 'category' id = Column(Integer, primary_key=True) slug = Column(String(250), nullable=False, unique=True) title = Column(Unicode(250), nullable=False) def __call__(self): return self.title I'd like to put this in a shared library and import it into each new project instead of cutting and pasting it, but I can't, because the