democracy-index 0.1.0

Machine readable version of the The Economist Democracy Index Wikipedia article
Documentation
  • Coverage
  • 95.7%
    178 out of 186 items documented0 out of 4 items with examples
  • Size
  • Source code size: 50.24 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.22 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • kpcyrd/democracy-index
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kpcyrd

democracy-index

Machine readable version of the The Economist Democracy Index Wikipedia article.

Usage

let democracy = democracy_index::get("NPL").expect("Country not found");
println!("{democracy:?}");

if democracy.regime_type == democracy_index::RegimeType::Authoritarian {
    println!("welp 😿");
}

License

The wikidata data is licensed CC0-1.0, since this license is uncommon for code, the code is licensed 0BSD instead.