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

Get the data (one-time)

The solver needs a model cache (~180 MB) that isn't shipped in the wheel:

maritime-choke fetch-data          # downloads and installs it

(You can also point at a local copy: maritime-choke fetch-data --from-local /path/to/model_cache_2019.)

Run

maritime-choke run                 # opens the GUI at http://127.0.0.1:5057

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.0.tar.gz (92.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.1.0-py3-none-any.whl (94.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: maritime_choke-0.1.0.tar.gz
  • Upload date:
  • Size: 92.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.1.0.tar.gz
Algorithm Hash digest
SHA256 6fb5f709b9fa330b934eaca22b0080317f3291f2842f5245746e93e82f1700b4
MD5 660f6370df4a9168215464044b3a158a
BLAKE2b-256 eaef9516bb22b080aeb6a783038222e18808abba428757b5bdff06c850196c56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: maritime_choke-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 94.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 667a6ca7e7f47657cad53e80a25885dd385688257db460520810c5a33fd202e1
MD5 7fc20469aa6b6f1e538d9b72f9981801
BLAKE2b-256 d787a943077208597e50c4378772450acd640369fb3f81a6d714ae6b8a3fd46d

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