Skip to content

Instantly share code, notes, and snippets.

View alexander-arce's full-sized avatar

Alex Arce alexander-arce

View GitHub Profile
@gugek
gugek / model.py
Last active September 16, 2020 00:00
SQLAlchemy Model for Citation Relations (Association Proxy)
"""Schema for bibliographic and citation datbaase
Uses a two-way association proxy to handle relationship between article
and creators.
"""
import argparse
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, backref
from sqlalchemy.sql import func
from sqlalchemy import Column, UnicodeText, Integer, ForeignKey