Skip to main content

Interactive model of macroeconomic risk from maritime-chokepoint trade disruptions

Project description

maritime-choke

An interactive model of the macroeconomic risk from maritime-chokepoint trade disruptions. Close any set of the world's 12 major shipping chokepoints, pick a (τ, ρ, ϱ, δ) calibration, solve a short-run production-network model forward, and explore where the value-added loss falls — on an interactive world heat map, by country, and by sector — all in a local browser GUI.

Based on Macroeconomic Risks from Maritime Trade Disruptions (Vemmarath & Veetil). Source & data: https://bitbucket.org/VipinVeetil/chokepoints

Install

pip install maritime-choke

Run

maritime-choke run

That's it. On first launch this downloads the model cache (~90 MB, not shipped in the wheel; published on Zenodo, DOI 10.5281/zenodo.21263267) and then opens the GUI in your browser at http://127.0.0.1:5057. Stop it with Ctrl-C.

To pre-fetch the data on its own (e.g. offline prep), or install it from a local copy:

maritime-choke fetch-data
maritime-choke fetch-data --from-local /path/to/model_cache_2019

Pick chokepoints, set the calibration, hit Run scenario. The defaults are the paper's baseline (τ, ρ, ϱ) = (0.3, −1, −1) with uniform leakage δ = 0.10; the commodity-differentiated energy leakage (δ = 0.45 on B05/B06/C19) is available as a toggle. Results are written to a per-user folder (see maritime-choke where) and shown in the page: world value-added loss, a relatable "scale of the loss" comparison, the world heat map (recolour by any of 50 sectors), and per-country / per-sector drill-downs.

Commands

command what it does
maritime-choke run launch the GUI (--port, --no-browser)
maritime-choke fetch-data download/install the model cache (--url, --from-local, --force)
maritime-choke pack-data <dir> pack a local cache into a .tar.xz for hosting
maritime-choke where show data / cache / run-output locations
maritime-choke build-data how to rebuild the cache from GTAP + OECD ICIO

Data locations can be overridden with MARITIME_CHOKE_DATA (cache root) and MARITIME_CHOKE_RUNS (run outputs). The download URL can be set with MARITIME_CHOKE_DATA_URL.

Data & licensing

The model cache is derived from OECD ICIO (freely downloadable) and the licensed GTAP 10 data base. The raw GTAP data is not redistributed; if you need to rebuild the cache from scratch you must supply your own GTAP licence — see maritime-choke build-data. The shipped map/comparison assets are built from public Natural Earth and World Bank data.

License

MIT (code). Underlying GTAP and OECD ICIO data are governed by their own terms.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maritime_choke-0.2.0.tar.gz (96.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maritime_choke-0.2.0-py3-none-any.whl (98.6 kB view details)

Uploaded Python 3

File details

Details for the file maritime_choke-0.2.0.tar.gz.

File metadata

  • Download URL: maritime_choke-0.2.0.tar.gz
  • Upload date:
  • Size: 96.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.0

File hashes

Hashes for maritime_choke-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f15f53cf1464dd1ca7563d2511df7d4de36ccaec927b0f3f4896592ba3a94e96
MD5 4d775924c64b7ce1f6007601078054ff
BLAKE2b-256 ce3acf3c0019bb55558052772fb8f04ea7f61ce5e5fd9f4c9b370491ffa9f152

See more details on using hashes here.

File details

Details for the file maritime_choke-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: maritime_choke-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 98.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.0

File hashes

Hashes for maritime_choke-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d5c00b6355912648b4ed2f8db385594413ca9aa995bca5bb61c92ba0100db6f
MD5 809328e28261a5d3cda97cd5443594e5
BLAKE2b-256 5adb6b043195d6bd35cad2fa12d5428bc2194dca9df0208da535d629c2e84687

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page