Skip to main content

moveq-catalogue

Registry for the same / replace / omit pattern used to extend one country's section questionnaire to another country without silent omissions.

PyPI Python versions License

  • same — the question carries over; only the local data source changes
  • replace — the question does not transfer; a locally meaningful replacement is required
  • omit — no small-area variable exists; the section is dropped with a note

Most applications should install the umbrella package instead:

pip install moveq

Installation

Requires Python 3.10+.

pip install moveq-catalogue

Usage

from moveq_catalogue import Catalogue, SectionAction

base_sections = ["coverage_pct", "service_deserts", "policy_scenarios"]

ie = Catalogue(base_sections, country="ireland")
ie.register("coverage_pct", SectionAction.SAME, note="TFI x CSO Small Area")
ie.register("service_deserts", SectionAction.SAME)
ie.register(
    "policy_scenarios",
    SectionAction.REPLACE,
    replacement_title="Connecting Ireland / Local Link / BusConnects",
)

assert ie.validate() == []  # every base section has been decided
print(ie.summary())  # {'same': 2, 'replace': 1, 'omit': 0}

validate() is the whole point of this package: it fails if a new country silently forgets to decide what happens to a base section.

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_catalogue-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

moveq_catalogue-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for moveq_catalogue-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8bf1565b29145ffb99c4ab92d2432608104dc99313ea12426bf5a4f06504be6e
MD5 2d91282048e59eb887cc4c89dfb96617
BLAKE2b-256 846b43df557535fa7bb4047972d57ded773ef80e0164daac7560bc0e6b2cf7e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for moveq_catalogue-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_catalogue-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for moveq_catalogue-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d52c2dbd34c6d1b80a0fc6a9330278d4f1d1beaa56861f7824f3c85e6b7ee28
MD5 75a9feaa8c35152a0da2400bb60dc70b
BLAKE2b-256 5ab2e21a50afcdbdb31512e363260e453d098b0eda3f4e58bf4f4109b035a4db

See more details on using hashes here.

Provenance

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