{"id":18916747,"url":"https://github.com/wamirez/ppp-calc","last_synced_at":"2026-05-08T14:45:57.298Z","repository":{"id":158538678,"uuid":"624152285","full_name":"wamirez/ppp-calc","owner":"wamirez","description":"Purchasing Power Parity Calculator","archived":false,"fork":false,"pushed_at":"2026-03-31T17:33:50.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-31T19:38:48.663Z","etag":null,"topics":["cli","nix","nix-shell","ppp","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wamirez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-05T21:20:55.000Z","updated_at":"2026-03-31T17:33:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc761da2-3b7a-4f19-817c-a1aefff565db","html_url":"https://github.com/wamirez/ppp-calc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wamirez/ppp-calc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wamirez%2Fppp-calc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wamirez%2Fppp-calc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wamirez%2Fppp-calc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wamirez%2Fppp-calc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wamirez","download_url":"https://codeload.github.com/wamirez/ppp-calc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wamirez%2Fppp-calc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32785391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","nix","nix-shell","ppp","python","python3"],"created_at":"2024-11-08T10:21:40.757Z","updated_at":"2026-05-08T14:45:57.268Z","avatar_url":"https://github.com/wamirez.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Purchasing power parity calculator \n\nAdjust a given amount for a given country after the [purchasing power parity (PPP)](https://en.wikipedia.org/wiki/Purchasing_power_parity) indicator using the Netherlands as reference. Corresponding ratios are computed from the amounts provided by the [Google Summer of Code Stipend Amounts Table](https://developers.google.com/open-source/gsoc/help/student-stipends) (CC-BY-4.0), and rounded to an integer.\n\n## Usage\n\nSpecify amount and country in order to get the adjusted amount for the given country:\n\n```console\n$ python ppp.py 500 Brazil\n278\n```\n\nSet a different reference country with `--reference`:\n\n```console\n$ python ppp.py 500 Brazil --reference Australia\n227\n```\n\nThe year can be specified when needed, defaulting to the current year:\n\n```console\n$ python ppp.py 500 Brazil 2022\n333\n```\n\nAdd exceptions for countries listed in a file:\n\n```console\n$ python ppp.py 500 Luxembourg --ignore european-union.txt\n500\n```\n\n## Purchasing power parity data\n\nThe year has to correspond to a `\u003cyear\u003e.csv` table whose contents can be fetched by using the helper script `update.py`. This script takes a URL to the GSoC contributor stipends page, or a snapshot of it from previous years (see e.g., the [Wayback Machine](https://web.archive.org/web) of the Internet Archive to get a snapshot). Its contents can then be stored in the working directory as follows:\n\n```console\n$ python update.py https://web.archive.org/web/20220809160247/https://developers.google.com/open-source/gsoc/help/student-stipends \u003e\u003e 2022.csv\n```\n\nUpdate the list of member states of the European Union:\n\n```console\n$ python update_eu.py \u003e european-union.txt\n```\n\n## Nix\n\nA Nix derivation, `shell.nix`, has been added to ensure reproducibility across the board.\n\n- [Install Nix](https://nix.dev/tutorials/install-nix)\n- Clone this repository\n\n  ```console\n  git clone https://github.com/wamirez/ppp-calc\n  ```\n\n- Enter the Nix shell\n\n  ```console\n  $ cd ppp-calc\n  $ nix-shell\n  ```\n\n`nix-shell` picks up `shell.nix` automatically installing required packages and creating a custom Python environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwamirez%2Fppp-calc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwamirez%2Fppp-calc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwamirez%2Fppp-calc/lists"}