moveq 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
moveq-0.1.0/LICENSE ADDED
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, moveq contributors
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
+ POSSIBILITY OF SUCH DAMAGE.
moveq-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,124 @@
1
+ Metadata-Version: 2.4
2
+ Name: moveq
3
+ Version: 0.1.0
4
+ Summary: Transport-equity analysis: Gini, Palma, and Concentration Index scoring plus cross-country catalogue harmonization.
5
+ Author-email: Soura <martisoura@gmail.com>
6
+ License-Expression: BSD-3-Clause
7
+ Project-URL: Homepage, https://github.com/SVamseekar/moveq
8
+ Project-URL: Documentation, https://github.com/SVamseekar/moveq/blob/main/docs/index.md
9
+ Project-URL: Repository, https://github.com/SVamseekar/moveq
10
+ Project-URL: Issues, https://github.com/SVamseekar/moveq/issues
11
+ Project-URL: Changelog, https://github.com/SVamseekar/moveq/blob/main/CHANGELOG.md
12
+ Keywords: transport,equity,accessibility,inequality,gini,palma,concentration-index,harmonization
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3 :: Only
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Topic :: Scientific/Engineering
25
+ Requires-Python: >=3.10
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ Requires-Dist: moveq-core>=0.1.0
29
+ Requires-Dist: moveq-catalogue>=0.1.0
30
+ Provides-Extra: frames
31
+ Requires-Dist: moveq-core[frames]; extra == "frames"
32
+ Provides-Extra: test
33
+ Requires-Dist: pytest>=7; extra == "test"
34
+ Dynamic: license-file
35
+
36
+ # moveq
37
+
38
+ **Transport-equity analysis for Python.**
39
+
40
+ [![PyPI](https://img.shields.io/pypi/v/moveq.svg)](https://pypi.org/project/moveq/)
41
+ [![Python versions](https://img.shields.io/pypi/pyversions/moveq.svg)](https://pypi.org/project/moveq/)
42
+ [![License](https://img.shields.io/pypi/l/moveq.svg)](https://github.com/SVamseekar/moveq/blob/main/LICENSE)
43
+
44
+ `moveq` is the umbrella package for the moveq stack. It re-exports
45
+ [`moveq-core`](https://pypi.org/project/moveq-core/) (Gini, Palma, Concentration
46
+ Index, composite scoring) and
47
+ [`moveq-catalogue`](https://pypi.org/project/moveq-catalogue/) (cross-country
48
+ `same` / `replace` / `omit` registry) behind a single import.
49
+
50
+ Install this package unless you specifically want a slimmer dependency tree.
51
+
52
+ ## Installation
53
+
54
+ Requires Python 3.10+.
55
+
56
+ ```bash
57
+ pip install moveq
58
+ ```
59
+
60
+ Pandas DataFrame helpers (vulnerability indexing):
61
+
62
+ ```bash
63
+ pip install "moveq[frames]"
64
+ ```
65
+
66
+ Command-line interface:
67
+
68
+ ```bash
69
+ pip install moveq-cli
70
+ ```
71
+
72
+ ## Quickstart
73
+
74
+ ```python
75
+ import numpy as np
76
+ from moveq import (
77
+ compute_gini,
78
+ compute_palma_ratio,
79
+ compute_concentration_index,
80
+ compute_score,
81
+ Catalogue,
82
+ SectionAction,
83
+ )
84
+
85
+ service = np.array([10.0, 20.0, 5.0, 50.0, 8.0])
86
+ population = np.array([1000, 800, 1200, 300, 900])
87
+ deprivation_rank = np.array([1, 3, 2, 5, 4]) # 1 = most deprived
88
+
89
+ gini = compute_gini(service, population)
90
+ palma = compute_palma_ratio(service, population)
91
+ ci = compute_concentration_index(service, deprivation_rank, population)
92
+
93
+ result = compute_score(
94
+ terms={"coverage": 0.7, "evening": 0.5, "frequency": None, "gap": 0.9},
95
+ weights={"coverage": 0.40, "evening": 0.25, "frequency": 0.20, "gap": 0.15},
96
+ )
97
+ print(result.score, result.note)
98
+ ```
99
+
100
+ `moveq` computes what the data shows. It does not decide policy.
101
+
102
+ ## Related packages
103
+
104
+ | Package | Role |
105
+ | --- | --- |
106
+ | [`moveq`](https://pypi.org/project/moveq/) | Umbrella import (this package) |
107
+ | [`moveq-core`](https://pypi.org/project/moveq-core/) | Pure NumPy algorithms |
108
+ | [`moveq-catalogue`](https://pypi.org/project/moveq-catalogue/) | Harmonization registry |
109
+ | [`moveq-cli`](https://pypi.org/project/moveq-cli/) | `moveq` command-line tool |
110
+
111
+ ## Documentation
112
+
113
+ Source, issues, and the full guides live on GitHub:
114
+
115
+ - [Overview](https://github.com/SVamseekar/moveq/blob/main/docs/index.md)
116
+ - [Getting started](https://github.com/SVamseekar/moveq/blob/main/docs/getting_started.md)
117
+ - [Methodology](https://github.com/SVamseekar/moveq/blob/main/docs/methodology.md)
118
+ - [Catalogue guide](https://github.com/SVamseekar/moveq/blob/main/docs/catalogue_guide.md)
119
+ - [API reference](https://github.com/SVamseekar/moveq/blob/main/docs/api_reference.md)
120
+ - [Changelog](https://github.com/SVamseekar/moveq/blob/main/CHANGELOG.md)
121
+
122
+ ## License
123
+
124
+ [BSD 3-Clause](https://github.com/SVamseekar/moveq/blob/main/LICENSE).
moveq-0.1.0/README.md ADDED
@@ -0,0 +1,89 @@
1
+ # moveq
2
+
3
+ **Transport-equity analysis for Python.**
4
+
5
+ [![PyPI](https://img.shields.io/pypi/v/moveq.svg)](https://pypi.org/project/moveq/)
6
+ [![Python versions](https://img.shields.io/pypi/pyversions/moveq.svg)](https://pypi.org/project/moveq/)
7
+ [![License](https://img.shields.io/pypi/l/moveq.svg)](https://github.com/SVamseekar/moveq/blob/main/LICENSE)
8
+
9
+ `moveq` is the umbrella package for the moveq stack. It re-exports
10
+ [`moveq-core`](https://pypi.org/project/moveq-core/) (Gini, Palma, Concentration
11
+ Index, composite scoring) and
12
+ [`moveq-catalogue`](https://pypi.org/project/moveq-catalogue/) (cross-country
13
+ `same` / `replace` / `omit` registry) behind a single import.
14
+
15
+ Install this package unless you specifically want a slimmer dependency tree.
16
+
17
+ ## Installation
18
+
19
+ Requires Python 3.10+.
20
+
21
+ ```bash
22
+ pip install moveq
23
+ ```
24
+
25
+ Pandas DataFrame helpers (vulnerability indexing):
26
+
27
+ ```bash
28
+ pip install "moveq[frames]"
29
+ ```
30
+
31
+ Command-line interface:
32
+
33
+ ```bash
34
+ pip install moveq-cli
35
+ ```
36
+
37
+ ## Quickstart
38
+
39
+ ```python
40
+ import numpy as np
41
+ from moveq import (
42
+ compute_gini,
43
+ compute_palma_ratio,
44
+ compute_concentration_index,
45
+ compute_score,
46
+ Catalogue,
47
+ SectionAction,
48
+ )
49
+
50
+ service = np.array([10.0, 20.0, 5.0, 50.0, 8.0])
51
+ population = np.array([1000, 800, 1200, 300, 900])
52
+ deprivation_rank = np.array([1, 3, 2, 5, 4]) # 1 = most deprived
53
+
54
+ gini = compute_gini(service, population)
55
+ palma = compute_palma_ratio(service, population)
56
+ ci = compute_concentration_index(service, deprivation_rank, population)
57
+
58
+ result = compute_score(
59
+ terms={"coverage": 0.7, "evening": 0.5, "frequency": None, "gap": 0.9},
60
+ weights={"coverage": 0.40, "evening": 0.25, "frequency": 0.20, "gap": 0.15},
61
+ )
62
+ print(result.score, result.note)
63
+ ```
64
+
65
+ `moveq` computes what the data shows. It does not decide policy.
66
+
67
+ ## Related packages
68
+
69
+ | Package | Role |
70
+ | --- | --- |
71
+ | [`moveq`](https://pypi.org/project/moveq/) | Umbrella import (this package) |
72
+ | [`moveq-core`](https://pypi.org/project/moveq-core/) | Pure NumPy algorithms |
73
+ | [`moveq-catalogue`](https://pypi.org/project/moveq-catalogue/) | Harmonization registry |
74
+ | [`moveq-cli`](https://pypi.org/project/moveq-cli/) | `moveq` command-line tool |
75
+
76
+ ## Documentation
77
+
78
+ Source, issues, and the full guides live on GitHub:
79
+
80
+ - [Overview](https://github.com/SVamseekar/moveq/blob/main/docs/index.md)
81
+ - [Getting started](https://github.com/SVamseekar/moveq/blob/main/docs/getting_started.md)
82
+ - [Methodology](https://github.com/SVamseekar/moveq/blob/main/docs/methodology.md)
83
+ - [Catalogue guide](https://github.com/SVamseekar/moveq/blob/main/docs/catalogue_guide.md)
84
+ - [API reference](https://github.com/SVamseekar/moveq/blob/main/docs/api_reference.md)
85
+ - [Changelog](https://github.com/SVamseekar/moveq/blob/main/CHANGELOG.md)
86
+
87
+ ## License
88
+
89
+ [BSD 3-Clause](https://github.com/SVamseekar/moveq/blob/main/LICENSE).
@@ -0,0 +1,57 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "moveq"
7
+ version = "0.1.0"
8
+ description = "Transport-equity analysis: Gini, Palma, and Concentration Index scoring plus cross-country catalogue harmonization."
9
+ readme = "README.md"
10
+ license = "BSD-3-Clause"
11
+ license-files = ["LICENSE"]
12
+ requires-python = ">=3.10"
13
+ authors = [
14
+ { name = "Soura", email = "martisoura@gmail.com" },
15
+ ]
16
+ keywords = [
17
+ "transport",
18
+ "equity",
19
+ "accessibility",
20
+ "inequality",
21
+ "gini",
22
+ "palma",
23
+ "concentration-index",
24
+ "harmonization",
25
+ ]
26
+ classifiers = [
27
+ "Development Status :: 3 - Alpha",
28
+ "Intended Audience :: Science/Research",
29
+ "Intended Audience :: Developers",
30
+ "Operating System :: OS Independent",
31
+ "Programming Language :: Python",
32
+ "Programming Language :: Python :: 3",
33
+ "Programming Language :: Python :: 3 :: Only",
34
+ "Programming Language :: Python :: 3.10",
35
+ "Programming Language :: Python :: 3.11",
36
+ "Programming Language :: Python :: 3.12",
37
+ "Programming Language :: Python :: 3.13",
38
+ "Topic :: Scientific/Engineering",
39
+ ]
40
+ dependencies = [
41
+ "moveq-core>=0.1.0",
42
+ "moveq-catalogue>=0.1.0",
43
+ ]
44
+
45
+ [project.optional-dependencies]
46
+ frames = ["moveq-core[frames]"]
47
+ test = ["pytest>=7"]
48
+
49
+ [project.urls]
50
+ Homepage = "https://github.com/SVamseekar/moveq"
51
+ Documentation = "https://github.com/SVamseekar/moveq/blob/main/docs/index.md"
52
+ Repository = "https://github.com/SVamseekar/moveq"
53
+ Issues = "https://github.com/SVamseekar/moveq/issues"
54
+ Changelog = "https://github.com/SVamseekar/moveq/blob/main/CHANGELOG.md"
55
+
56
+ [tool.setuptools.packages.find]
57
+ where = ["src"]
moveq-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,27 @@
1
+ """moveq — umbrella package over moveq-core and moveq-catalogue."""
2
+
3
+ from moveq_catalogue import Catalogue, SectionAction, SectionMapping
4
+ from moveq_core import (
5
+ ScoreComponent,
6
+ ScoreResult,
7
+ clip01,
8
+ compute_concentration_index,
9
+ compute_gini,
10
+ compute_palma_ratio,
11
+ compute_score,
12
+ )
13
+
14
+ __all__ = [
15
+ "compute_gini",
16
+ "compute_palma_ratio",
17
+ "compute_concentration_index",
18
+ "compute_score",
19
+ "clip01",
20
+ "ScoreComponent",
21
+ "ScoreResult",
22
+ "Catalogue",
23
+ "SectionAction",
24
+ "SectionMapping",
25
+ ]
26
+
27
+ __version__ = "0.1.0"
@@ -0,0 +1,124 @@
1
+ Metadata-Version: 2.4
2
+ Name: moveq
3
+ Version: 0.1.0
4
+ Summary: Transport-equity analysis: Gini, Palma, and Concentration Index scoring plus cross-country catalogue harmonization.
5
+ Author-email: Soura <martisoura@gmail.com>
6
+ License-Expression: BSD-3-Clause
7
+ Project-URL: Homepage, https://github.com/SVamseekar/moveq
8
+ Project-URL: Documentation, https://github.com/SVamseekar/moveq/blob/main/docs/index.md
9
+ Project-URL: Repository, https://github.com/SVamseekar/moveq
10
+ Project-URL: Issues, https://github.com/SVamseekar/moveq/issues
11
+ Project-URL: Changelog, https://github.com/SVamseekar/moveq/blob/main/CHANGELOG.md
12
+ Keywords: transport,equity,accessibility,inequality,gini,palma,concentration-index,harmonization
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3 :: Only
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Topic :: Scientific/Engineering
25
+ Requires-Python: >=3.10
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ Requires-Dist: moveq-core>=0.1.0
29
+ Requires-Dist: moveq-catalogue>=0.1.0
30
+ Provides-Extra: frames
31
+ Requires-Dist: moveq-core[frames]; extra == "frames"
32
+ Provides-Extra: test
33
+ Requires-Dist: pytest>=7; extra == "test"
34
+ Dynamic: license-file
35
+
36
+ # moveq
37
+
38
+ **Transport-equity analysis for Python.**
39
+
40
+ [![PyPI](https://img.shields.io/pypi/v/moveq.svg)](https://pypi.org/project/moveq/)
41
+ [![Python versions](https://img.shields.io/pypi/pyversions/moveq.svg)](https://pypi.org/project/moveq/)
42
+ [![License](https://img.shields.io/pypi/l/moveq.svg)](https://github.com/SVamseekar/moveq/blob/main/LICENSE)
43
+
44
+ `moveq` is the umbrella package for the moveq stack. It re-exports
45
+ [`moveq-core`](https://pypi.org/project/moveq-core/) (Gini, Palma, Concentration
46
+ Index, composite scoring) and
47
+ [`moveq-catalogue`](https://pypi.org/project/moveq-catalogue/) (cross-country
48
+ `same` / `replace` / `omit` registry) behind a single import.
49
+
50
+ Install this package unless you specifically want a slimmer dependency tree.
51
+
52
+ ## Installation
53
+
54
+ Requires Python 3.10+.
55
+
56
+ ```bash
57
+ pip install moveq
58
+ ```
59
+
60
+ Pandas DataFrame helpers (vulnerability indexing):
61
+
62
+ ```bash
63
+ pip install "moveq[frames]"
64
+ ```
65
+
66
+ Command-line interface:
67
+
68
+ ```bash
69
+ pip install moveq-cli
70
+ ```
71
+
72
+ ## Quickstart
73
+
74
+ ```python
75
+ import numpy as np
76
+ from moveq import (
77
+ compute_gini,
78
+ compute_palma_ratio,
79
+ compute_concentration_index,
80
+ compute_score,
81
+ Catalogue,
82
+ SectionAction,
83
+ )
84
+
85
+ service = np.array([10.0, 20.0, 5.0, 50.0, 8.0])
86
+ population = np.array([1000, 800, 1200, 300, 900])
87
+ deprivation_rank = np.array([1, 3, 2, 5, 4]) # 1 = most deprived
88
+
89
+ gini = compute_gini(service, population)
90
+ palma = compute_palma_ratio(service, population)
91
+ ci = compute_concentration_index(service, deprivation_rank, population)
92
+
93
+ result = compute_score(
94
+ terms={"coverage": 0.7, "evening": 0.5, "frequency": None, "gap": 0.9},
95
+ weights={"coverage": 0.40, "evening": 0.25, "frequency": 0.20, "gap": 0.15},
96
+ )
97
+ print(result.score, result.note)
98
+ ```
99
+
100
+ `moveq` computes what the data shows. It does not decide policy.
101
+
102
+ ## Related packages
103
+
104
+ | Package | Role |
105
+ | --- | --- |
106
+ | [`moveq`](https://pypi.org/project/moveq/) | Umbrella import (this package) |
107
+ | [`moveq-core`](https://pypi.org/project/moveq-core/) | Pure NumPy algorithms |
108
+ | [`moveq-catalogue`](https://pypi.org/project/moveq-catalogue/) | Harmonization registry |
109
+ | [`moveq-cli`](https://pypi.org/project/moveq-cli/) | `moveq` command-line tool |
110
+
111
+ ## Documentation
112
+
113
+ Source, issues, and the full guides live on GitHub:
114
+
115
+ - [Overview](https://github.com/SVamseekar/moveq/blob/main/docs/index.md)
116
+ - [Getting started](https://github.com/SVamseekar/moveq/blob/main/docs/getting_started.md)
117
+ - [Methodology](https://github.com/SVamseekar/moveq/blob/main/docs/methodology.md)
118
+ - [Catalogue guide](https://github.com/SVamseekar/moveq/blob/main/docs/catalogue_guide.md)
119
+ - [API reference](https://github.com/SVamseekar/moveq/blob/main/docs/api_reference.md)
120
+ - [Changelog](https://github.com/SVamseekar/moveq/blob/main/CHANGELOG.md)
121
+
122
+ ## License
123
+
124
+ [BSD 3-Clause](https://github.com/SVamseekar/moveq/blob/main/LICENSE).
@@ -0,0 +1,10 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/moveq/__init__.py
5
+ src/moveq.egg-info/PKG-INFO
6
+ src/moveq.egg-info/SOURCES.txt
7
+ src/moveq.egg-info/dependency_links.txt
8
+ src/moveq.egg-info/requires.txt
9
+ src/moveq.egg-info/top_level.txt
10
+ tests/test_reexports.py
@@ -0,0 +1,8 @@
1
+ moveq-core>=0.1.0
2
+ moveq-catalogue>=0.1.0
3
+
4
+ [frames]
5
+ moveq-core[frames]
6
+
7
+ [test]
8
+ pytest>=7
@@ -0,0 +1 @@
1
+ moveq
@@ -0,0 +1,8 @@
1
+ def test_umbrella_reexports():
2
+ from moveq import Catalogue, SectionAction, compute_gini, compute_score
3
+
4
+ assert callable(compute_gini)
5
+ assert callable(compute_score)
6
+ assert SectionAction.SAME.value == "same"
7
+ cat = Catalogue(["a"], country="test")
8
+ assert cat.base_sections == ["a"]