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. 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.1.1.tar.gz (92.7 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.1.1-py3-none-any.whl (94.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: maritime_choke-0.1.1.tar.gz
  • Upload date:
  • Size: 92.7 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.1.1.tar.gz
Algorithm Hash digest
SHA256 07788096b9caa5a14260f78cf56b45e0acff6b315e27d8465a2b787e8837f791
MD5 b54d8366cefca256b8e41791249b969a
BLAKE2b-256 ba63881007dc3c3c183dff2c7a7d5c493f7b5abb8f95f49ced1735f0d62a39ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: maritime_choke-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 94.2 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba518b393598789f376c633049e86181a829c9a4000b83213c407c3e27f26f24
MD5 bc5f86c89647d430058639f3d2d4c718
BLAKE2b-256 cb4a2dbd0fb2828aa861917ffb634086306ece8ba42deb9c37af053928bf214e

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