Skip to main content

moveq-cli

Command-line interface for moveq.

PyPI Python versions License

Use this package when you want the equity metrics, a composite accessibility score, or a catalogue completeness check from a terminal — a CSV of areas, or a JSON config — without writing Python.

pip install moveq-cli installs the moveq console script and pulls in moveq (and therefore moveq-core and moveq-catalogue). The algorithms are the same functions as the Python API; this package is only the argparse front-end.

What the commands do

moveq gini and moveq palma read a CSV and treat one column as the service value (trips, departures, coverage) and another as the population weight. They print a single number:

  • Gini — overall inequality of that service across people (0 = equal)
  • Palma — mean service of the best-served 10% of population over the worst-served 40% (1 = equal; inf if the bottom 40% have no service)

moveq ci is the Wagstaff Concentration Index. It needs a third column: socioeconomic rank (1 = most deprived in this library). Positive values mean service is concentrated in less-deprived areas; negative values mean the opposite.

moveq score builds a 0–100 weighted composite. Terms live in [0, 1]; JSON null means “this term was not collected.” Missing terms are dropped and remaining weights are renormalised — they are never treated as zero. You can pass terms and weights on the command line or in a JSON file (--json).

moveq catalogue validate checks a country catalogue JSON against the same / replace / omit rules: every base section must have an explicit decision, replacements need a title, omissions need a note.

Column names are whatever your CSV actually uses; you point at them with --value, --weight, and --rank.

Installation

Requires Python 3.10+.

pip install moveq-cli

Examples

Inequality from a CSV (headers trips, population, deprivation_rank):

moveq gini data.csv --value trips --weight population
moveq palma data.csv --value trips --weight population
moveq ci data.csv --value trips --rank deprivation_rank --weight population

Composite score, inline or from a file:

moveq score \
  --terms '{"coverage": 0.8, "evening": 0.5, "frequency": null}' \
  --weights '{"coverage": 0.5, "evening": 0.3, "frequency": 0.2}'

moveq score score_config.json --json

Catalogue file:

moveq catalogue validate country_catalogue.json

Documentation

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_cli-0.1.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

moveq_cli-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for moveq_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1bc9dd7ff6172904497dcf6af01c7bbbfb693bfc5c0a628c54f5bd4907b7c6ff
MD5 18a8d2c8d819c3b7997b3e290f5f6980
BLAKE2b-256 fe3a43a833647b28576ec2df308f94905412d6e348b977aa4b7c6b2801916ef6

See more details on using hashes here.

Provenance

The following attestation bundles were made for moveq_cli-0.1.1.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_cli-0.1.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for moveq_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b9a7d95feb5b81fe33520a1c8d6f9b1a61ae88d74bbdc890bddda3d5b8d41f3
MD5 9d72e182c88200d68a3ef59c3fb438ae
BLAKE2b-256 606c2ff43566715d9c11e883de62a1e50818b2c0c00fa1f171e16c9d5dbdc115

See more details on using hashes here.

Provenance

The following attestation bundles were made for moveq_cli-0.1.1-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

This release

0.1.1 This release

2 files

0.1.0

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