Skip to main content

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 the paper Macroeconomic Risks from Maritime Trade Disruptions (Veetil & Vemmarath). 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.

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.3.0.tar.gz (114.4 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.3.0-py3-none-any.whl (115.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: maritime_choke-0.3.0.tar.gz
  • Upload date:
  • Size: 114.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 b547d462bb381e3a1cd6bc3af994c6026760ee3360cdebf0921f21a573998e0c
MD5 b68bec581777d0ab62dd58c23c4df87f
BLAKE2b-256 5558eccbcc2a48a5777ab268797b662cdc0e91819ccc3dfccd82a4ab34bc7f69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: maritime_choke-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 115.8 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d090c9b2eef63b7197fc7e5e1e0deaf1e9944b24845c6e63cf0af9eb16d84ef
MD5 e3a4ce8c4c8a762f0ed9bc2f21916cca
BLAKE2b-256 839143517ca4435488a034dd2145fe3b71c7803763be825d6a88954ca6862fbf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page