Open source Inequality measures

Moveq

Python libraries that turn service and demographic data into standard inequality measures, and keep cross-country methods honest.

Moveq is for transport researchers, analysts, and transport authorities who would otherwise reimplement Gini, Palma, and Wagstaff in each study. It is out of scope as a GIS platform, and it will not impute a demographic indicator you did not supply. Cross-country work uses an explicit catalogue: each metric is marked same, replace, or omit. Aequitas remains the place where national briefings are published. Moveq is the measure library.

What does the core require?

moveq-cli 0.2.0 reads CSV and writes numbers. The core is pure NumPy and needs no GIS library and no GDAL. It calculates a population-weighted Gini, a Palma ratio, and a Wagstaff Concentration Index. A composite accessibility score renormalises when a term is absent. Missing demographic indicators are not imputed. Four packages ship on PyPI. The optional frames extra adds pandas.

Install

pip install moveq-cli

Install with the optional pandas extra

pip install "moveq-cli[frames]"

Install version 0.2.0

moveq-cli==0.2.0

With a CSV containing trips and population columns, run moveq gini data.csv --value trips --weight population. Add --json for JSON output.

Example records, simplified

Method examples. Not Aequitas country scores.
SituationCatalogue actionNumeric result
Same indicator in both countriessameBoth rows use it
Indicator exists under a different definitionreplaceThe replacement is recorded
Indicator does not translateomitThe metric is dropped, not filled
Composite term missingrenormaliseScore uses the terms that exist
Demographic cell emptyno imputeNo invented population figure

The operating problem

Inequality formulas get rewritten for each study. Cross-country transport papers then drop a metric quietly when it fails to translate. Moveq keeps the formula in one NumPy implementation and keeps the drop visible in the catalogue.

How a CSV becomes a cited measure

  1. CSV in
  2. NumPy measures
  3. Catalogue note
  4. Numbers out
  1. Read a CSV

    through the CLI. No GIS import step.

  2. Compute

    population-weighted Gini, Palma ratio, and Wagstaff Concentration Index.

  3. Renormalise

    a composite accessibility score when a term is absent.

  4. Record harmonisation

    in moveq-catalogue: same, replace, or omit.

  5. Write numbers.

    The core does not require GDAL or another spatial stack.

Python 3.10 or later and NumPy. Packages moveq, moveq-cli, moveq-core, and moveq-catalogue. The optional frames extra adds pandas.

Aequitas uses the same honesty rule on national warehouses: a country's score stays on that country's index. If you need the England, Ireland, Netherlands, or France briefing, open Aequitas. If you need the functions, install Moveq.

Evidence and logging

  • Three named measures.
  • Explicit omit and replace records.
  • Zero required GIS dependencies.

Verified facts and tech stack

pip install moveq-cli

Verified facts and tech stack
FigureWhat it countsSource
0.2.0VersionPyPI and product repository
4PackagesPyPI and product repository
3: Gini, Palma, WagstaffMeasuresPyPI and product repository
0Required GIS dependenciesPyPI and product repository
pure NumPyCorePyPI and product repository
pandas, frames extraOptionalPyPI and product repository
moveq.souravamseekar.comSitePyPI and product repository
SVamseekar/moveqGitHubPyPI and product repository
Live / released on PyPIStatus in inventoryPyPI and product repository
3.10 or laterPythonPyPI and product repository
BSD-3-ClauseLicencePyPI and product repository

Pricing, access, and related work

Run one CSV. Record every metric you omit.