International Relations Database
I got tired of the merging and cleaning of international relations data, so I put it all together in a relational database.
It is similar to EUGene <http://eugenesoftware.org/>
_, but uses an
relational database backend, and is much less complete.
The database currently includes the following datasets:
List of independent states <http://privatewww.essex.ac.uk/~ksg/statelist.html>
_Modified Polity data <http://privatewww.essex.ac.uk/~ksg/polity.html>
_The code is generally database agnostic since it is written with in sqlalchemy. I have tested it with sqlite and postgresql.
To install irdata as a sqlite database at path/to/database/irdata.db
.
::
$ python build_irdata.py sqlite:///path/to/database/irdata.db
To install irdata to the postgresql database irdata
First create the database if it doesn't exist.
::
$ createdb irdata
::
$ python build_irdata.py postgresql://user@hostname/irdata