Skip to content

Python package to access open data on security studies

License

Notifications You must be signed in to change notification settings

JELambert/sswebdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python package to access open data on security studies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages