Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

download_all.py 640 B

12345678910111213141516171819202122
  1. import tqdm
  2. import os
  3. import pathlib
  4. from read_di_unfccc import UNFCCCApiReader
  5. ROOT_DIR = pathlib.Path(os.path.abspath(os.curdir)) # This is your Project Root
  6. def main():
  7. r = UNFCCCApiReader()
  8. for party in tqdm.tqdm(r.parties["code"], desc="parties"):
  9. df = r.query(party_code=party, progress=True)
  10. annexI = party in r.annex_one_reader.parties["code"].values
  11. subdir = "annexI" if annexI else "non-annexI"
  12. df.to_csv(ROOT_DIR / "data" / subdir / f"{party}.csv.gz", compression="gzip")
  13. df.to_parquet(ROOT_DIR / "data" / subdir / f"{party}.parquet")
  14. if __name__ == "__main__":
  15. main()