Skip to content
Python package to access open data on security studies
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build/lib/sswebdata
sswebdata
.DS_Store
LICENSE
README.md
setup.py

README.md

Security Studies open-access Web Data

Some of the data I am using when working on research projects and the dissertation is updated frequently. Rather than having to download files to keep up, I wanted to have access to the current data through a python library. I will be expanding this package to include more data as time permits. For a full more thorough discussion and some usage of the package check out this blog post "Security Studies Web Data".

Installation:

  • Clone into a directory

  • Navigate to sswebdata/

  • python setup.py install

Current functions:

Ucdp.get_ucdp(ucdp)

  Version = 18.1
  args:
      ucdp =

      "nonstate" = Nonstate conflict dataset
      "dyadic" = Dyadic conflict dataset
      "ucdp" = Full UCDP data set
      "onesided" = Onesided conflict data sets
      "battledeaths" = Battledeaths data set
      "gedevents" = The geo-located events data set

Reign.reign(frame)

   args:
       frame =

       "monthly" - de-duplicated based on coups
       "yearly" - de-duplicated based on coups
       "full" - non de-duplicated

       notes :
           I added a democracy and autocracy variable (foreign occupied and warlordism are in the autocratic category)

Example

from sswebdata import Ucdp

nonstate_dataset = Ucdp.get_ucdp("nonstate")

Citations

See https://ucdp.uu.se/downloads/ for specific citations based on the dataset you utilize.

Bell, Curtis. 2016. The Rulers, Elections, and Irregular Governance Dataset (REIGN). Broomfield, CO: OEF Research. Available at oefresearch.org

You can’t perform that action at this time.