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-cliInstall with the optional pandas extra
pip install "moveq-cli[frames]"Install version 0.2.0
moveq-cli==0.2.0With a CSV containing trips and population columns, run moveq gini data.csv --value trips --weight population. Add --json for JSON output.
Example records, simplified
| Situation | Catalogue action | Numeric result |
|---|---|---|
| Same indicator in both countries | same | Both rows use it |
| Indicator exists under a different definition | replace | The replacement is recorded |
| Indicator does not translate | omit | The metric is dropped, not filled |
| Composite term missing | renormalise | Score uses the terms that exist |
| Demographic cell empty | no impute | No 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
- CSV in
- NumPy measures
- Catalogue note
- Numbers out
Read a CSV
through the CLI. No GIS import step.
Compute
population-weighted Gini, Palma ratio, and Wagstaff Concentration Index.
Renormalise
a composite accessibility score when a term is absent.
Record harmonisation
in moveq-catalogue: same, replace, or omit.
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
| Figure | What it counts | Source |
|---|---|---|
| 0.2.0 | Version | PyPI and product repository |
| 4 | Packages | PyPI and product repository |
| 3: Gini, Palma, Wagstaff | Measures | PyPI and product repository |
| 0 | Required GIS dependencies | PyPI and product repository |
| pure NumPy | Core | PyPI and product repository |
| pandas, frames extra | Optional | PyPI and product repository |
| moveq.souravamseekar.com | Site | PyPI and product repository |
| SVamseekar/moveq | GitHub | PyPI and product repository |
| Live / released on PyPI | Status in inventory | PyPI and product repository |
| 3.10 or later | Python | PyPI and product repository |
| BSD-3-Clause | Licence | PyPI and product repository |
Pricing, access, and related work
Install from PyPI at no charge. Support is via GitHub issues.