Skip to content

A simple tracker for Special Drawing Rights in Africa

Notifications You must be signed in to change notification settings

ONEcampaign/sdr_tracker

Repository files navigation

Update SDRs

Special Drawing Rights (SDR) Tracker

This repository contains data and scripts powering ONE's SDR Tracker

Repository Structure and Information

This repository contains data and scripts to create the csv file powering the flourish visualization for the tracker. Python (>=3.10) is required and additional packages required are listed under requirements.txt. The main purpose of the repository is to update the SDR tracker with data extracted from the IMF on SDR annoucements on holdings and allocations, and ONE's qualitative analysis. The update can be manually triggered through the Actions tab.

The repository includes the following subfolders:

  • output: contains the CSV that powers the tracker (sdr.csv) and a CSV tracking each update.
  • scripts: scripts for extracting and transforming data. imf.py queries the imf api to extract GDP data. download_sdr.py extracts the latest SDR annoucements from the IMF.sdr_tracker.py created the final csv that powers the tracker, incuding concordance of countries, calculating columns including %gdp, and creating html code for popups and panels. Additionally, a config.py file manages file paths to different folders; utils.py contains helper functions for a variety of frequently-used tasks
  • glossaries: Found inside the scripts folder. glossaries contains a json file for Flourish geometries for Africa. Other intermediate files including map templates and WEO data is saved in this folder

Website and Charts

The SDR tracker can be found here: https://data.one.org/data-dives/sdr/

Sources

About

A simple tracker for Special Drawing Rights in Africa

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages