Skip to main content

moveq

Transport-equity analysis for Python.

PyPI Python versions License

moveq is the umbrella package for the moveq stack. It re-exports moveq-core (Gini, Palma, Concentration Index, composite scoring) and moveq-catalogue (cross-country same / replace / omit registry) behind a single import.

Install this package unless you specifically want a slimmer dependency tree.

Installation

Requires Python 3.10+.

pip install moveq

Pandas DataFrame helpers (vulnerability indexing):

pip install "moveq[frames]"

Command-line interface:

pip install moveq-cli

Quickstart

import numpy as np
from moveq import (
    compute_gini,
    compute_palma_ratio,
    compute_concentration_index,
    compute_score,
    Catalogue,
    SectionAction,
)

service = np.array([10.0, 20.0, 5.0, 50.0, 8.0])
population = np.array([1000, 800, 1200, 300, 900])
deprivation_rank = np.array([1, 3, 2, 5, 4])  # 1 = most deprived

gini = compute_gini(service, population)
palma = compute_palma_ratio(service, population)
ci = compute_concentration_index(service, deprivation_rank, population)

result = compute_score(
    terms={"coverage": 0.7, "evening": 0.5, "frequency": None, "gap": 0.9},
    weights={"coverage": 0.40, "evening": 0.25, "frequency": 0.20, "gap": 0.15},
)
print(result.score, result.note)

moveq computes what the data shows. It does not decide policy.

Related packages

Package Role
moveq Umbrella import (this package)
moveq-core Pure NumPy algorithms
moveq-catalogue Harmonization registry
moveq-cli moveq command-line tool

Documentation

Source, issues, and the full guides live on GitHub:

License

BSD 3-Clause.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moveq-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moveq-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: moveq-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for moveq-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2b22ed5ae1532a6bc2a916b8d6c1c4db127ef30f8ad3d6f32b7097db8564bc2d
MD5 1ee73ccce9eb4a5e5b1a3e0e8719fb5c
BLAKE2b-256 7f07e0b8fd90e67ebbe45ee6ee29727f08b17852ab2d3701ce6fcd1dfc89da7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for moveq-0.1.0.tar.gz:

Publisher: publish.yml on SVamseekar/moveq

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: moveq-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for moveq-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e71da34b2a5ccaa895e6518cf5614ad7ae83b2c77ff9be41972ea789cf7c3145
MD5 acef83ae517a8dcbab5521c7d5e68549
BLAKE2b-256 0f7e7213ffb936d4532cc520370e55f2969b0fdd3d3d9e6e2d5e536c87a0c30a

See more details on using hashes here.

Provenance

The following attestation bundles were made for moveq-0.1.0-py3-none-any.whl:

Publisher: publish.yml on SVamseekar/moveq

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.2

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page