Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 607 Bytes

README.md

File metadata and controls

25 lines (14 loc) · 607 Bytes

POPONG Models

A set of data models for Korean political data written in SQLAlchemy. These models extract valuable information of Korean politics, and power Pokr and POPONG APIs.

Install

$ sudo pip install git+https://github.com/teampopong/popong-models.git

Usage

Initialize new database:

$ cd PROJECT_DIRECTORY
$ popong-alembic-init
$ vi alembic.ini       # fill database location

Python models:

#!/usr/bin/env python

from popong_models import Person
some_people = Person.query.filter_by(birthday_month=3).all()